* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --radius: 12px;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --btn-text: white;
    --gap-large: 40px;
    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.08);
    --shadow-md: 0 4px 16px rgba(37, 99, 235, 0.12);
    --shadow-lg: 0 8px 24px rgba(37, 99, 235, 0.16);
    --btn-opacity: 1;
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth: cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #fafafa;
    color: #1f2937;
    padding: 15px;
    padding-bottom: 80px;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    animation: pagePopIn 0.5s var(--bounce);
}

@keyframes pagePopIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

body.has-bg-image .container {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s var(--bounce);
}

body.has-bg-image.dark-theme .container {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.has-bg-image .option-btn,
body.has-bg-image .fav-link,
body.has-bg-image .manage-fav-btn,
body.has-bg-image .editor-actions button,
body.has-bg-image .md-toolbar button,
body.has-bg-image .engine-btn,
body.has-bg-image .email-btn,
body.has-bg-image .btn-primary,
body.has-bg-image .settings-btn,
body.has-bg-image .history-btn,
body.has-bg-image .clear-all,
body.has-bg-image .library-chip,
body.has-bg-image .recent-chip,
body.has-bg-image .about-link,
body.has-bg-image .office-option-btn {
    background-color: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    color: #1f2937 !important;
    transition: all 0.2s var(--bounce);
}

body.has-bg-image.dark-theme .option-btn,
body.has-bg-image.dark-theme .fav-link,
body.has-bg-image.dark-theme .manage-fav-btn,
body.has-bg-image.dark-theme .editor-actions button,
body.has-bg-image.dark-theme .md-toolbar button,
body.has-bg-image.dark-theme .engine-btn,
body.has-bg-image.dark-theme .email-btn,
body.has-bg-image.dark-theme .btn-primary,
body.has-bg-image.dark-theme .settings-btn,
body.has-bg-image.dark-theme .history-btn,
body.has-bg-image.dark-theme .clear-all,
body.has-bg-image.dark-theme .library-chip,
body.has-bg-image.dark-theme .recent-chip,
body.has-bg-image.dark-theme .about-link,
body.has-bg-image.dark-theme .office-option-btn {
    background-color: rgba(30, 41, 59, 0.7) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #e2e8f0 !important;
}

body.has-bg-image .clear-all {
    background-color: rgba(220, 38, 38, 0.75) !important;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    text-shadow: 0 0 2px rgba(0,0,0,0.3);
}

body.has-bg-image.dark-theme .clear-all {
    background-color: rgba(220, 38, 38, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffe0e0 !important;
}

body.has-bg-image .settings-btn.active {
    background-color: var(--primary) !important;
    color: var(--btn-text) !important;
    border-color: var(--primary) !important;
}

body.dark-theme {
    background-color: #0f172a;
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s var(--bounce);
}

body.dark-theme .container {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand {
    text-align: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--primary);
    opacity: 0.85;
    transition: all 0.2s;
    cursor: pointer;
}

body.dark-theme .brand {
    color: var(--primary-light);
}

.brand:active {
    transform: scale(0.98);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    animation: floatDown 0.6s var(--bounce);
}

@keyframes floatDown {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.datetime {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    transition: transform 0.1s;
}

.datetime:active {
    transform: scale(0.98);
}

.datetime .time {
    font-size: 36px;
    font-weight: 700;
}

.datetime .date {
    font-size: 16px;
    font-weight: 500;
    opacity: 0.8;
}

body.dark-theme .datetime {
    color: var(--primary-light);
}

.logo-img {
    display: none;
}

.header-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.about-link {
    text-decoration: none;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0.8;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid transparent;
    transition: all 0.2s var(--bounce);
    cursor: pointer;
}

body.dark-theme .about-link {
    background: rgba(96, 165, 250, 0.1);
}

.about-link:hover {
    opacity: 1;
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.02);
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    animation: fadeUp 0.5s var(--bounce) 0.1s both;
}

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

.search-bar {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    border: 2px solid #e5e7eb;
    color: #374151;
    border-radius: 26px;
    outline: none;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.25s var(--bounce);
    box-shadow: var(--shadow-sm);
}

body.dark-theme .search-bar {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.search-bar:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), var(--shadow-md);
    transform: scale(1.01);
}

#searchBtn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--btn-text);
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--bounce);
    box-shadow: var(--shadow-md);
    opacity: var(--btn-opacity);
}

#searchBtn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
}

.option-btn {
    flex: 1;
    min-width: 90px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    color: #374151;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s var(--bounce);
    box-shadow: var(--shadow-sm);
    opacity: var(--btn-opacity);
}

body.dark-theme .option-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.option-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.project-section {
    width: 100%;
    margin-top: 20px;
    animation: fadeUp 0.5s var(--bounce) 0.2s both;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    transition: color 0.2s;
}

body.dark-theme .project-title {
    color: #e2e8f0;
}

.manage-fav-btn {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s var(--bounce);
    opacity: var(--btn-opacity);
}

.manage-fav-btn:hover {
    background: var(--primary);
    color: var(--btn-text);
    transform: scale(1.03) translateY(-2px);
}

.favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.fav-link {
    display: inline-block;
    padding: 8px 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 40px;
    color: var(--primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s var(--bounce);
    cursor: pointer;
    opacity: var(--btn-opacity);
}

body.dark-theme .fav-link {
    background: #334155;
    border-color: #475569;
    color: #90cdf4;
}

.fav-link:hover {
    background: var(--primary);
    color: var(--btn-text);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-sm);
}

.empty-fav-msg {
    text-align: center;
    padding: 32px;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 24px;
    transition: all 0.2s;
}

.notebook-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.editor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-actions button {
    padding: 6px 14px;
    border-radius: 40px;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s var(--bounce);
    opacity: var(--btn-opacity);
}

body.dark-theme .editor-actions button {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.editor-actions button:hover {
    background: var(--primary);
    color: var(--btn-text);
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.02);
}

.md-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.md-toolbar button {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s var(--bounce);
    font-weight: 500;
    opacity: var(--btn-opacity);
}

body.dark-theme .md-toolbar button {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.md-toolbar button:hover {
    background: var(--primary);
    color: var(--btn-text);
    border-color: var(--primary);
    transform: translateY(-2px) scale(1.03);
}

.split-pane {
    display: flex;
    flex-direction: row;
    gap: 16px;
    min-height: 480px;
}

.edit-area, .preview-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #fefefe;
    transition: box-shadow 0.2s var(--bounce), transform 0.2s;
}

body.dark-theme .edit-area, body.dark-theme .preview-area {
    background: #0f172a;
    border-color: #334155;
}

.edit-area:hover, .preview-area:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.edit-area textarea {
    width: 100%;
    height: 100%;
    min-height: 420px;
    padding: 16px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    border: none;
    outline: none;
    resize: vertical;
    background: inherit;
    color: inherit;
}

.preview-area .preview-content {
    padding: 16px;
    overflow-y: auto;
    height: 100%;
    word-wrap: break-word;
}

.preview-content h1, .preview-content h2, .preview-content h3 {
    margin-top: 0.8em;
    margin-bottom: 0.4em;
}

.note-library {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
}

.library-header {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.library-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.library-chip {
    background: #e6f0ff;
    padding: 4px 12px;
    border-radius: 32px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s var(--bounce);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.dark-theme .library-chip {
    background: #2d3a5e;
}

.library-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px) scale(1.03);
}

.library-chip .delete-note {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.library-chip .delete-note:hover {
    opacity: 1;
}

.recent-files {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
}

.recent-header {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}

.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.recent-chip {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 32px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s var(--bounce);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.dark-theme .recent-chip {
    background: #334155;
}

.recent-chip:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px) scale(1.03);
}

.recent-chip .delete-recent {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.recent-chip .delete-recent:hover {
    opacity: 1;
}

.modal-card.large {
    max-width: 980px;
    width: 95%;
}

@media (max-width: 768px) {
    .split-pane {
        flex-direction: column;
    }
    .modal-card.large {
        width: 95%;
        max-height: 85vh;
    }
    .md-toolbar button {
        padding: 4px 8px;
        font-size: 11px;
    }
    .datetime .time {
        font-size: 28px;
    }
    .datetime {
        font-size: 22px;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #ffffff;
    padding: 28px 24px;
    border-radius: 28px;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s var(--bounce);
    box-shadow: 0 25px 40px -12px black;
    position: relative;
}

body.dark-theme .modal-card {
    background: #1e293b;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s var(--bounce);
}

body.dark-theme .modal-close {
    background: #334155;
    color: #e2e8f0;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #e2e8f0;
}

.engine-list, .email-list, .office-options-list, .custom-engine-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.engine-btn, .email-btn, .office-option-btn, .custom-engine-btn {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s var(--bounce);
    opacity: var(--btn-opacity);
}

body.dark-theme .engine-btn, body.dark-theme .email-btn, body.dark-theme .office-option-btn, body.dark-theme .custom-engine-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.engine-btn:hover, .email-btn:hover, .office-option-btn:hover, .custom-engine-btn:hover {
    background: var(--primary);
    color: var(--btn-text);
    border-color: var(--primary);
    transform: translateX(6px) scale(1.02);
}

.fav-list, .history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.fav-item, .history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s var(--bounce);
}

body.dark-theme .fav-item, body.dark-theme .history-item {
    background: #334155;
    border-color: #475569;
}

.fav-item:hover, .history-item:hover {
    transform: translateX(6px) scale(1.01);
    box-shadow: var(--shadow-sm);
}

.fav-info, .history-info {
    flex: 1;
    overflow: hidden;
}

.fav-name {
    font-weight: 600;
}

.fav-url {
    font-size: 12px;
    color: #6c757d;
    word-break: break-all;
}

body.dark-theme .fav-url {
    color: #a0afc0;
}

.delete-fav, .history-btn.delete, .delete-custom-engine {
    background: #fee2e2;
    border: none;
    padding: 6px 12px;
    border-radius: 30px;
    color: #b91c1c;
    cursor: pointer;
    font-size: 12px;
    opacity: var(--btn-opacity);
    transition: all 0.2s var(--bounce);
}

.delete-fav:hover, .history-btn.delete:hover, .delete-custom-engine:hover {
    background: #fecaca;
    transform: scale(1.03);
}

.add-fav-form, .add-engine-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.add-fav-form input, .add-engine-form input {
    padding: 12px;
    border-radius: 40px;
    border: 1px solid #cbd5e1;
    background: white;
    transition: all 0.2s var(--bounce);
}

body.dark-theme .add-fav-form input, body.dark-theme .add-engine-form input {
    background: #0f172a;
    border-color: #475569;
    color: white;
}

.add-fav-form input:focus, .add-engine-form input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
    transform: scale(1.01);
}

.btn-primary {
    background: var(--primary);
    color: var(--btn-text);
    border: none;
    padding: 10px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    opacity: var(--btn-opacity);
    transition: all 0.2s var(--bounce);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.05);
}

.settings-section {
    margin-bottom: 24px;
}

.settings-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.settings-btn {
    padding: 8px 18px;
    border-radius: 40px;
    border: 1px solid #cbd5e1;
    background: white;
    cursor: pointer;
    opacity: var(--btn-opacity);
    transition: all 0.2s var(--bounce);
}

body.dark-theme .settings-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}

.settings-btn.active {
    background: var(--primary);
    color: var(--btn-text);
    border-color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 2px rgba(0,0,0,0.2);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.1);
}

.settings-btn:hover:not(.active) {
    transform: translateY(-2px) scale(1.02);
    background: rgba(37,99,235,0.1);
    border-color: var(--primary);
}

.history-meta {
    font-size: 11px;
    color: #6c757d;
}

.history-actions {
    display: flex;
    gap: 8px;
}

.history-btn.search {
    background: var(--primary-light);
    color: var(--btn-text);
    opacity: var(--btn-opacity);
    transition: all 0.2s var(--bounce);
}

.history-btn.search:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.clear-all {
    width: 100%;
    background: #fee2e2;
    color: #b91c1c;
    margin-top: 12px;
    padding: 10px;
    border-radius: 40px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    opacity: var(--btn-opacity);
    display: block;
    text-align: center;
    transition: all 0.2s var(--bounce);
}

.clear-all:hover {
    background: #fecaca;
    transform: translateY(-2px) scale(1.01);
}

.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e5e7eb;
    justify-content: space-around;
    align-items: center;
    padding: 0 12px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    transition: background 0.3s;
    animation: slideUp 0.4s var(--bounce) 0.3s both;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

body.dark-theme .mobile-nav {
    background: rgba(30, 41, 59, 0.95);
    border-color: #334155;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    font-size: 12px;
    height: 100%;
    flex: 1;
    transition: all 0.2s var(--bounce);
    border-radius: 12px;
    margin: 4px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: var(--btn-opacity);
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-3px);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s var(--bounce);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0) scale(1.02);
    opacity: 1;
}

body.dark-theme .toast {
    background: #e2e8f0;
    color: #1f2937;
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
    body {
        padding-bottom: 15px;
    }
}

body.minimal-mode .options,
body.minimal-mode .project-section,
body.minimal-mode .mobile-nav,
body.minimal-mode .header-actions {
    display: none !important;
}

body.minimal-mode .container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 30px);
    padding-bottom: 20px;
}

body.minimal-mode .search-container {
    margin-top: auto;
    margin-bottom: 0;
}