* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern scrollbar styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    background-clip: padding-box;
}

:root {
    /* Modern color palette - refined and sleek */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    /* Light mode colors */
    --bg-gradient: linear-gradient(135deg, #e0e7ff 0%, #e0f2fe 50%, #dbeafe 100%);
    --surface-primary: rgba(255, 255, 255, 0.95);
    --surface-secondary: rgba(255, 255, 255, 0.9);
    --surface-tertiary: rgba(248, 250, 252, 0.6);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.18);
    --border-subtle: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.12);
    --header-gradient: linear-gradient(135deg, #f8fafc 0%, rgba(255, 255, 255, 0.8) 100%);

    /* Neutral colors */
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e0;
    --gray-400: #a0aec0;
    --gray-500: #718096;
    --gray-600: #4a5568;
    --gray-700: #2d3748;
    --gray-800: #1a202c;
    --gray-900: #171923;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Dark mode colors */
body.dark-mode {
    --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    --surface-primary: rgba(30, 30, 46, 0.95);
    --surface-secondary: rgba(35, 35, 55, 0.9);
    --surface-tertiary: rgba(40, 40, 60, 0.7);
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-tertiary: #94a3b8;
    --border-color: rgba(100, 116, 139, 0.3);
    --border-subtle: rgba(100, 116, 139, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --header-gradient: linear-gradient(135deg, rgba(30, 30, 46, 0.8) 0%, rgba(35, 35, 55, 0.9) 100%);
}

/* Enhanced loading indicator styles */
.loading-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin: 12px 0;
    padding: 16px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
    font-size: 18px;
    color: var(--primary-color);
    filter: drop-shadow(0 0 2px rgba(102, 126, 234, 0.3));
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-gradient);
    height: 100vh;
    overflow: hidden;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    margin-bottom: 10px;
    padding: 12px 20px;
    background: var(--surface-primary);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow-color), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
    transition: var(--transition-normal);
    position: relative;
    z-index: 100;
}

header:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

header h1 {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.04em;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.hamburger-menu {
    position: relative;
}

.hamburger-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 12px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(102, 126, 234, 0.2);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--surface-primary);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    min-width: 320px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: var(--transition-normal);
}

.hamburger-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e5e9;
    border-radius: 6px 6px 0 0;
}

.dropdown-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.dropdown-content {
    padding: 20px;
}

.dropdown-content .form-group {
    margin-bottom: 15px;
}

.dropdown-content .form-group:last-child {
    margin-bottom: 0;
}

.dropdown-content label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.dropdown-content input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.dropdown-content input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
}

.dropdown-content .form-actions {
    margin-top: 15px;
    text-align: center;
}

.title-section {
    background: var(--surface-secondary);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    z-index: 10;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.title-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.title-section .title-label {
    display: inline-block;
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

#document-title {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-normal);
    background: var(--surface-tertiary);
    color: var(--text-primary);
}

#document-title:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.filename-display {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.filename-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface-tertiary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filename-text::before {
    content: "📄";
    font-size: 0.8rem;
}

.filename-text.saved {
    color: var(--success-color);
    border-color: var(--success-color);
    background: rgba(72, 187, 120, 0.1);
}

.filename-text.unsaved {
    color: var(--warning-color);
    border-color: var(--warning-color);
    background: rgba(237, 137, 54, 0.1);
}

.sections-container {
    background: var(--surface-primary);
    backdrop-filter: blur(10px);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.sections-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.sections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.sections-header h2 {
    color: #2c3e50;
    font-weight: 300;
}

.sections-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    margin: 0 4px;
    border-radius: var(--radius-md);
    height: 32px;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e53e3e 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-danger:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    filter: brightness(1.1);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #38a169 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-success:hover {
    filter: brightness(1.1);
}

.btn-muted {
    background-color: #bdc3c7;
    color: white;
    border: 1px solid transparent;
    opacity: 0.7;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    padding: 0;
}

.btn-muted:hover {
    background-color: #95a5a6;
    opacity: 1;
    transform: translateY(-1px);
}

.section-wrapper {
    margin-bottom: 24px;
    position: relative;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: var(--transition-normal);
    background: var(--surface-secondary);
    backdrop-filter: blur(5px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.section:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.section-header {
    background: var(--surface-secondary);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transition: var(--transition-normal);
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.section-header:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.section-header:hover::before {
    opacity: 1;
}

.section-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.collapse-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.collapse-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.section-content.expanded {
    max-height: 1000px;
    opacity: 1;
}

.section-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    flex: 1;
}

.section-number {
    font-weight: 600;
    color: #2c3e50;
}

.section-controls {
    display: flex;
    gap: 4px;
}

.section-content {
    padding: 24px 32px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    max-height: none;
    opacity: 1;
    transform: translateY(0);
}

.section-content.expanded {
    max-height: none;
    overflow: visible;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-10px);
    overflow: hidden;
}

.section.collapsed .section-header {
    border-bottom: none;
    border-radius: var(--radius-xl);
}

.section.collapsed .section-header::before {
    opacity: 0;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.form-group label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
}

.form-group:focus-within label::after {
    width: 30px;
}

.main-point {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-normal);
    background: var(--surface-tertiary);
    color: var(--text-primary);
}

.user-text {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: var(--transition-normal);
    font-family: inherit;
    background: var(--surface-tertiary);
    color: var(--text-primary);
    line-height: 1.6;
}

.main-point:focus,
.user-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
    background: var(--surface-secondary);
}

.generated-text-container {
    position: relative;
}

.generated-text {
    background: var(--surface-tertiary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-height: 80px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    transition: var(--transition-normal);
    box-shadow: inset var(--shadow-sm);
}

.generated-text:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.btn-replace-text {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d69e2e 100%);
    color: white;
    font-size: 12px;
    padding: 8px 16px;
    opacity: 0.9;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: 32px;
}

.btn-replace-text:hover {
    filter: brightness(1.1);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.generated-text-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.btn-generate-text {
    background-color: #3498db;
    color: white;
    font-size: 12px;
    padding: 8px 16px;
    transition: background-color 0.3s, opacity 0.3s;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-generate-text:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-generate-text:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

.move-up, .move-down {
    background-color: #95a5a6;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.move-up:hover, .move-down:hover {
    background-color: #7f8c8d;
}


.no-sections-message {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

.main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Enhanced floating action styles */
.floating-helper {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 100;
    opacity: 0.9;
}

.floating-helper:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
    opacity: 1;
}

/* Enhanced section number display */
.section-number-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

/* Improved focus states */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.tab-container {
    background: var(--surface-primary);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
}

.tab-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.tab-navigation {
    display: flex;
    background: var(--surface-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    border-radius: var(--radius-lg);
    position: relative;
}

.tab-btn:hover {
    background: var(--surface-tertiary);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    padding: 32px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    display: block;
}

.metadata-container {
    max-width: 800px;
    margin: 0 auto;
}

.metadata-header {
    margin-bottom: 30px;
    text-align: center;
}

.metadata-header h2 {
    color: var(--text-primary);
    font-weight: 300;
    margin-bottom: 10px;
}

.metadata-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.metadata-form {
    display: grid;
    gap: 25px;
}

.settings-section {
    padding: 20px;
    background: var(--surface-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.settings-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.metadata-form select,
.metadata-form input[type="text"],
.metadata-form input[type="number"],
.metadata-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    background: var(--surface-tertiary);
    color: var(--text-primary);
}

.metadata-form select:focus,
.metadata-form input:focus,
.metadata-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.metadata-form textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.message {
    position: fixed;
    bottom: 32px;
    right: 32px;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.message-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95) 0%, rgba(56, 161, 105, 0.95) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.message-error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.95) 0%, rgba(229, 62, 62, 0.95) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
    
    .sections-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .section-controls {
        align-self: flex-end;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .metadata-container {
        padding: 10px;
    }
}

.documents-container {
    max-width: 900px;
    margin: 0 auto;
}

.documents-header {
    margin-bottom: 30px;
    text-align: center;
}

.documents-header h2 {
    color: #2c3e50;
    font-weight: 300;
    margin-bottom: 10px;
}

.documents-description {
    color: #7f8c8d;
    font-size: 1rem;
    line-height: 1.5;
}

.document-actions {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 30px;
}

.save-section,
.load-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.save-section h3,
.load-section h3,
.saved-documents h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.saved-documents {
    grid-column: span 2;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.documents-list {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.document-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.document-item:hover {
    background: var(--surface-tertiary);
}

.document-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-name {
    font-weight: 600;
    color: var(--text-primary);
}

.document-date,
.document-size {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.document-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.no-documents,
.error {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

.error {
    color: #e74c3c;
}

input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

input[type="file"]:focus {
    outline: none;
    border-color: #3498db;
}

@media (max-width: 768px) {
    .document-actions {
        grid-template-columns: 1fr;
    }
    
    .saved-documents {
        grid-column: span 1;
    }
    
    .document-item .document-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Enhanced Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px) saturate(150%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: var(--surface-primary);
    backdrop-filter: blur(24px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--header-gradient);
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 300;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

.modal-close:hover {
    background-color: var(--surface-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group:last-child {
    margin-bottom: 0;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--surface-tertiary);
    color: var(--text-primary);
}

.modal-body input:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-body textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
    background: var(--header-gradient);
    border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* New Interface Styles */
.header-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 101;
}

.file-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.import-export-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.editor-container {
    background: var(--surface-primary);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.editor-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--header-gradient);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.editor-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.5rem;
}

.editor-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.editor-main {
    display: grid;
    grid-template-columns: 2fr 4px 1fr;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

.document-editor {
    padding: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#document-text {
    width: 100%;
    flex: 1;
    padding: 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Charter', 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    resize: none;
    background: var(--surface-tertiary);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

#document-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), inset 0 2px 4px rgba(0, 0, 0, 0.02);
    background: var(--surface-secondary);
    transform: scale(1.001);
}

.suggestion-panel {
    padding: 14px 12px;
    background: var(--header-gradient);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

.suggestion-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.suggestion-header h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.suggestion-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.suggestion-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.generation-mode-selection {
    margin-bottom: 12px;
    flex-shrink: 0;
}

.generation-mode-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px;
    background: var(--surface-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.mode-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.mode-btn:not(:disabled):hover {
    background: var(--surface-secondary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mode-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mode-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mode-btn.generating {
    border-color: var(--primary-color);
    background: var(--surface-secondary);
}

.mode-btn.generating::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.mode-icon {
    font-size: 1rem;
    line-height: 1;
}

.mode-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.suggestion-text {
    flex: 1;
    padding: 16px;
    background: var(--surface-tertiary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 12px;
    box-shadow: inset var(--shadow-sm);
    transition: var(--transition-normal);
    overflow-y: auto;
    min-height: 0;
}

.suggestion-text:empty::before {
    content: 'AI suggestions will appear here...';
    color: var(--text-tertiary);
    font-style: italic;
}

.suggestion-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 12px 0;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-controls .btn {
    flex: 1;
    max-width: 200px;
    font-weight: 600;
}

/* Form help text */
.form-help {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

/* Settings Modal Tabs */
.settings-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--surface-secondary);
    padding: 4px;
    border-radius: var(--radius-lg);
}

.settings-tab-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition-normal);
    border-radius: var(--radius-md);
}

.settings-tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.settings-tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-sm);
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.generation-form .settings-section {
    background: var(--surface-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.generation-form .settings-section h4 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Environment Variables Styles */
.env-var-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    align-items: center;
}

.env-var-item input[type="text"] {
    padding: 8px 12px;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--surface-tertiary);
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.env-var-item input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.env-var-item input[type="text"]::placeholder {
    color: var(--text-tertiary);
}

.env-var-remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
    height: auto;
}

.env-var-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

#env-vars-container {
    margin: 16px 0;
    max-height: 400px;
    overflow-y: auto;
}

#env-vars-container:empty::before {
    content: 'No environment variables configured. Click "Add Environment Variable" to add one.';
    display: block;
    padding: 20px;
    text-align: center;
    color: var(--text-tertiary);
    font-style: italic;
    font-size: 0.9rem;
}

#add-env-var-btn {
    margin-top: 8px;
    width: 100%;
}

/* Responsive Design for New Interface */
@media (max-width: 1200px) {
    .editor-main {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
    }

    .resize-handle {
        display: none;
    }

    .document-editor {
        border-bottom: 1px solid var(--gray-200);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 12px 8px;
    }

    header {
        padding: 16px 20px;
        margin-bottom: 12px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .header-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .file-controls {
        padding: 6px 10px;
        gap: 6px;
    }

    .import-export-controls {
        padding: 4px 8px;
        gap: 4px;
    }

    .title-section {
        padding: 10px 16px;
        margin-bottom: 12px;
    }

    .title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .title-section .title-label {
        font-size: 0.95rem;
    }

    #document-title {
        width: 100%;
        padding: 10px 14px;
        font-size: 1rem;
    }

    .editor-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px 16px;
    }

    .editor-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

    .editor-main {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
    }

    .document-editor,
    .suggestion-panel {
        padding: 16px 12px;
    }

    #document-text {
        padding: 12px;
        font-size: 0.95rem;
    }

    .suggestion-text {
        padding: 12px;
        font-size: 0.95rem;
    }

    .suggestion-controls {
        flex-direction: column;
        margin: 8px 0;
    }

    .suggestion-controls .btn {
        width: 100%;
    }

    .settings-tabs {
        flex-direction: column;
        gap: 2px;
    }

    .settings-tab-btn {
        text-align: left;
    }

    /* Mobile-friendly floating notifications */
    .message {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Resize Handle Styles */
.resize-handle {
    background: var(--gray-200);
    cursor: col-resize;
    position: relative;
    transition: var(--transition-fast);
    border-left: 1px solid var(--gray-300);
    border-right: 1px solid var(--gray-300);
}

.resize-handle:hover {
    background: var(--primary-color);
    background: linear-gradient(180deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.resize-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 20px;
    background: repeating-linear-gradient(
        to bottom,
        var(--gray-400) 0px,
        var(--gray-400) 2px,
        transparent 2px,
        transparent 4px
    );
    transition: var(--transition-fast);
}

.resize-handle:hover::before {
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.8) 0px,
        rgba(255, 255, 255, 0.8) 2px,
        transparent 2px,
        transparent 4px
    );
}

.resize-handle.dragging {
    background: var(--primary-dark);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.5);
}

/* Prevent text selection while dragging */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--gray-300);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
    overflow: hidden;
}

body.dark-mode .dark-mode-toggle {
    background: var(--primary-color);
}

.dark-mode-toggle::before {
    content: '☀️';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: all 0.3s ease;
}

body.dark-mode .dark-mode-toggle::before {
    content: '🌙';
    left: calc(100% - 22px);
}

.dark-mode-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .dark-mode-toggle::after {
    transform: translateX(28px);
}

/* File menu dropdown */
.file-menu-dropdown {
    position: relative;
    display: inline-block;
    z-index: 1100;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface-primary);
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 8px 0;
    z-index: 1100;
    backdrop-filter: blur(20px) saturate(180%);
    animation: dropdownSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    gap: 8px;
}

.dropdown-item:hover {
    background: var(--surface-tertiary);
    color: var(--primary-color);
}

.dropdown-item:active {
    background: var(--surface-secondary);
    transform: scale(0.98);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 8px 0;
}