:root {
    
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-primary: #5865F2;
    --accent-secondary: #4752c4;
    --border-color: #e0e0e0;
    --input-bg: #ffffff;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.08);
    --discord-bg: #36393f;
    --discord-text: #dcddde;
    --discord-embed-bg: #2f3136;
    --success: #43b581;
    --error: #f04747;
}

[data-theme="dark"] {
    
    --bg-primary: #1e1e1e;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #444444;
    --input-bg: #3d3d3d;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-primary);
}

.theme-toggle-container {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.sun-icon, .moon-icon {
    position: absolute;
    transition: transform 0.3s, opacity 0.3s;
}

[data-theme="light"] .sun-icon {
    transform: scale(1);
    opacity: 1;
}

[data-theme="light"] .moon-icon {
    transform: scale(0);
    opacity: 0;
}

[data-theme="dark"] .sun-icon {
    transform: scale(0);
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    transform: scale(1);
    opacity: 1;
}

main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.creator-container {
    display: flex;
    gap: 30px;
}

@media (max-width: 1200px) {
    .creator-container {
        flex-direction: column;
    }
}

.editor-panel {
    flex: 1;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    max-height: 80vh;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.preview-panel {
    flex: 1;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
    max-height: 80vh;
    overflow-y: auto;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
}

input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input[type="color"] {
    width: 100%;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.field-inputs {
    flex: 1;
}

.field-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-top: 25px;
}

.inline-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.inline-checkbox label {
    margin-bottom: 0;
    font-size: 12px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.3s;
}

.btn-icon:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.btn-icon.delete {
    color: var(--error);
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
}

.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.discord-preview {
    background-color: var(--discord-bg);
    border-radius: 8px;
    padding: 16px;
    color: var(--discord-text);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.discord-message-content {
    margin-bottom: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.discord-embed {
    display: flex;
    margin-top: 8px;
    max-width: 520px;
}

.embed-pill {
    width: 4px;
    border-radius: 3px 0 0 3px;
    background-color: var(--accent-primary);
    flex-shrink: 0;
}

.embed-inner {
    background-color: var(--discord-embed-bg);
    border-radius: 0 3px 3px 0;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative; 
}

.embed-author {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.embed-author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.embed-author-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.embed-title-link {
    color: #00aff4;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
    text-decoration: none;
}

.embed-title-link:hover {
    text-decoration: underline;
}

.embed-description {
    color: var(--discord-text);
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.embed-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.embed-field {
    font-size: 14px;
}

.embed-field.inline {
    grid-column: span 1;
}

.embed-field.non-inline {
    grid-column: 1 / -1;
}

.embed-field-name {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2px;
}

.embed-field-value {
    color: var(--discord-text);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.embed-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 3px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.embed-thumbnail {
    position: absolute;
    top: 8px;
    right: 8px;
}

.embed-thumbnail img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 3px;
    object-fit: cover;
}

.embed-footer {
    display: flex;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: #a3a6aa;
}

.embed-footer-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.embed-footer span {
    margin-right: 6px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    background-color: var(--discord-bg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: var(--shadow-md);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    z-index: 1000;
}

.notification.success {
    background-color: var(--success);
}

.notification.error {
    background-color: var(--error);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

#notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s;
}

@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }
    
    .creator-container {
        flex-direction: column;
    }
    
    .editor-panel, 
    .preview-panel {
        max-height: none;
    }
    
    .embed-fields {
        grid-template-columns: 1fr;
    }
    
    .embed-field.inline {
        grid-column: 1;
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-primary);
}

::-webkit-scrollbar-corner {
    background: var(--bg-primary);
}

footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
}

.footer-branding h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.footer-branding p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.social-links, .discord-servers {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discord-servers h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.server-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.social-link, .server-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    background-color: var(--bg-primary);
}

.social-link:hover, .server-link:hover {
    background-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-link svg, .server-link svg {
    transition: transform 0.2s;
}

.social-link:hover svg, .server-link:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

.layout-selector-container {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.layout-selector-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.layout-card {
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.layout-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.layout-card.selected {
    border-color: var(--accent-primary);
}

.layout-preview {
    height: 120px;
    background-color: var(--discord-bg);
    position: relative;
    overflow: hidden;
}

.layout-card h3 {
    padding: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.welcome-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><rect x="10" y="10" width="180" height="100" rx="3" fill="%235865F2"/><rect x="15" y="15" width="170" height="20" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="15" y="45" width="170" height="30" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="85" width="80" height="15" rx="2" fill="%23FFFFFF" opacity="0.2"/></svg>');
}

.announcement-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><rect x="10" y="10" width="180" height="100" rx="3" fill="%23F04747"/><rect x="15" y="15" width="170" height="20" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="15" y="45" width="170" height="40" rx="2" fill="%23FFFFFF" opacity="0.1"/><circle cx="25" cy="100" r="8" fill="%23FFFFFF" opacity="0.2"/><rect x="40" y="95" width="100" height="10" rx="2" fill="%23FFFFFF" opacity="0.2"/></svg>');
}

.rules-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><rect x="10" y="10" width="180" height="100" rx="3" fill="%23FAA61A"/><rect x="15" y="15" width="170" height="15" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="15" y="35" width="170" height="10" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="50" width="170" height="10" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="65" width="170" height="10" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="80" width="170" height="10" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="95" width="170" height="10" rx="2" fill="%23FFFFFF" opacity="0.1"/></svg>');
}

.event-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><rect x="10" y="10" width="180" height="100" rx="3" fill="%2343B581"/><rect x="15" y="15" width="100" height="15" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="15" y="35" width="80" height="10" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="50" width="120" height="30" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="85" width="60" height="20" rx="10" fill="%23FFFFFF" opacity="0.2"/><rect x="130" y="15" width="50" height="50" rx="2" fill="%23FFFFFF" opacity="0.2"/></svg>');
}

.giveaway-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><rect x="10" y="10" width="180" height="100" rx="3" fill="%23EB459E"/><rect x="15" y="15" width="170" height="20" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="15" y="45" width="170" height="20" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="75" width="50" height="25" rx="12.5" fill="%23FFFFFF" opacity="0.2"/><rect x="75" y="75" width="50" height="25" rx="12.5" fill="%23FFFFFF" opacity="0.2"/><rect x="135" y="75" width="50" height="25" rx="12.5" fill="%23FFFFFF" opacity="0.2"/></svg>');
}

.profile-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><rect x="10" y="10" width="180" height="100" rx="3" fill="%237289DA"/><circle cx="35" cy="30" r="15" fill="%23FFFFFF" opacity="0.2"/><rect x="60" y="20" width="100" height="15" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="60" y="40" width="70" height="10" rx="2" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="60" width="50" height="10" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="75" y="60" width="50" height="10" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="135" y="60" width="50" height="10" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="15" y="75" width="170" height="25" rx="2" fill="%23FFFFFF" opacity="0.1"/></svg>');
}

.poll-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><rect x="10" y="10" width="180" height="100" rx="3" fill="%23607D8B"/><rect x="15" y="15" width="170" height="20" rx="2" fill="%23FFFFFF" opacity="0.2"/><rect x="15" y="45" width="170" height="10" rx="5" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="45" width="120" height="10" rx="5" fill="%23FFFFFF" opacity="0.3"/><rect x="15" y="65" width="170" height="10" rx="5" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="65" width="70" height="10" rx="5" fill="%23FFFFFF" opacity="0.3"/><rect x="15" y="85" width="170" height="10" rx="5" fill="%23FFFFFF" opacity="0.1"/><rect x="15" y="85" width="100" height="10" rx="5" fill="%23FFFFFF" opacity="0.3"/></svg>');
}

.custom-preview {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><rect x="10" y="10" width="180" height="100" rx="3" fill="%232F3136"/><text x="100" y="60" font-family="Arial" font-size="14" fill="%23FFFFFF" text-anchor="middle">Start from Scratch</text><rect x="60" y="75" width="80" height="20" rx="10" fill="%235865F2" opacity="0.5"/></svg>');
}

@media (max-width: 768px) {
    .layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.layout-card {
    position: relative;
    overflow: hidden;
}

.layout-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.layout-card:hover::after {
    opacity: 0.2;
}

.layout-card.selected::after {
    opacity: 0.3;
}

.layout-card.selected {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin: 30px 0;
}

.section-title h2 {
    font-size: 24px;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: var(--bg-primary);
    border-radius: 10px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s;
    transition: background-color 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    text-align: right;
    transition: border-color 0.3s;
}

.format-selector {
    margin-bottom: 20px;
}

.format-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s;
}

.format-selector select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
}

.format-selector select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.json-preview-container {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.json-preview-header {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
}

.json-preview-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    transition: color 0.3s;
}

.json-actions {
    display: flex;
    gap: 8px;
}

#json-code {
    padding: 15px;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    transition: color 0.3s;
    max-height: 300px;
    overflow-y: auto;
}

.code-example-container {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.code-example-container h3 {
    padding: 12px 15px;
    margin: 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: color 0.3s, border-color 0.3s;
}

.code-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    transition: border-color 0.3s;
}

.code-tab {
    padding: 10px 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s, background-color 0.3s;
}

.code-tab:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.code-tab.active {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}

.code-panel {
    display: none;
    padding: 15px;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    transition: color 0.3s;
    max-height: 200px;
    overflow-y: auto;
}

.code-panel.active {
    display: block;
}

#export-json-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

#export-json-btn svg {
    transition: transform 0.2s;
}

#export-json-btn:hover svg {
    transform: translateY(2px);
}

.string { color: #7CB342; }
.number { color: #FF8F00; }
.boolean { color: #1E88E5; }
.null { color: #E53935; }
.key { color: #9C27B0; }
.comment { color: #607D8B; font-style: italic; }
