
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --support-color: #f97316;
    --support-hover: #ea580c;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #e5e5e5;
    --text-muted: #a1a1aa;
    --border-color: #404040;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.domain {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-support {
    background: var(--support-color);
    color: white;
}

.btn-support:hover {
    background: var(--support-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Main content layout */
.main-content {
    flex: 1;
    display: flex;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f0f0f 100%);
    min-height: calc(100vh - 80px);
}

/* Left Sidebar */
.left-sidebar {
    width: 350px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    box-shadow: var(--shadow);
}

.sidebar-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.sidebar-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h3 i {
    color: var(--primary-color);
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-content .section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-content .section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-content h4 i {
    color: var(--primary-color);
}

/* Editor Area */
.editor-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.editor-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-header h2 i {
    color: var(--primary-color);
}

.editor-actions {
    display: flex;
    gap: 0.5rem;
}

.editor-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
}

.chapters-panel {
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    overflow-y: auto;
    max-height: calc(100vh - 240px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.chapters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.chapters-header h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapters-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chapter-item {
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.chapter-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.chapter-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.chapter-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.chapter-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chapter-item.active .chapter-meta {
    color: rgba(255, 255, 255, 0.8);
}

.chapter-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: none;
}

.chapter-item:hover .chapter-actions {
    display: flex;
    gap: 0.25rem;
}

.chapter-action-btn {
    background: var(--bg-tertiary);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.chapter-action-btn:hover {
    background: var(--danger-color);
    color: white;
}

.editor-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.current-chapter-info {
    background: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.chapter-stats {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Writing Editor */
.writing-editor {
    flex: 1;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    min-height: 500px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--border-color);
}

/* Editor Theme Styles */
.writing-editor.dark-theme {
    --editor-bg: #0a0a0a;
    --editor-text: #ffffff;
    --editor-toolbar-bg: #1a1a1a;
}

.writing-editor.light-theme {
    --editor-bg: #ffffff;
    --editor-text: #000000;
    --editor-toolbar-bg: #f8f9fa;
}

.writing-editor.sepia-theme {
    --editor-bg: #fdf6e3;
    --editor-text: #5c4b37;
    --editor-toolbar-bg: #eee8d5;
}

.writing-editor.night-theme {
    --editor-bg: #0f0f23;
    --editor-text: #cccccc;
    --editor-toolbar-bg: #1e1e3f;
}

/* Quill editor customization */
.ql-toolbar {
    border: none !important;
    border-bottom: 2px solid var(--border-color) !important;
    background: var(--editor-toolbar-bg, var(--bg-secondary)) !important;
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 1rem !important;
}

.ql-container {
    border: none !important;
    border-radius: 0 0 0.5rem 0.5rem !important;
    background: var(--editor-bg, var(--bg-primary)) !important;
    color: var(--editor-text, var(--text-primary)) !important;
    font-size: 1rem !important;
}

.ql-editor {
    min-height: 400px !important;
    color: var(--editor-text, var(--text-primary)) !important;
    background: var(--editor-bg, var(--bg-primary)) !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    padding: 2rem !important;
}

.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
    color: var(--editor-text, var(--text-primary)) !important;
    margin: 1.5rem 0 1rem 0 !important;
}

.ql-editor p {
    color: var(--editor-text, var(--text-primary)) !important;
    margin-bottom: 1rem !important;
}

.ql-toolbar .ql-picker-label,
.ql-toolbar .ql-picker-item,
.ql-toolbar button {
    color: var(--text-secondary) !important;
}

.ql-toolbar .ql-stroke {
    stroke: var(--text-secondary) !important;
}

.ql-toolbar .ql-fill {
    fill: var(--text-secondary) !important;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted) !important;
    opacity: 0.8;
    font-style: italic;
}

/* Form elements */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

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

/* Cover options */
.cover-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cover-preview {
    border: 2px dashed var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    background: var(--bg-primary);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-placeholder {
    color: var(--text-secondary);
}

.cover-placeholder i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.cover-image {
    max-width: 100%;
    max-height: 130px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-item {
    background: var(--bg-primary);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Format options */
.format-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.checkbox-label:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.checkbox-label input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.checkbox-label span {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Book layout options */
.size-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.size-input {
    display: flex;
    flex-direction: column;
}

.size-input label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.size-input input {
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

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

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

/* Download options */
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.download-format-btn {
    padding: 1rem;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.download-format-btn i {
    font-size: 1.5rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: var(--danger-color);
}

/* Preview content */
#previewContent {
    color: var(--text-primary);
}

#previewContent h1,
#previewContent h2,
#previewContent h3 {
    margin: 1.5rem 0 1rem 0;
    color: var(--text-primary);
}

#previewContent p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

#previewContent img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.chapter-preview {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.chapter-preview:last-child {
    border-bottom: none;
}

.chapter-title-preview {
    color: var(--primary-color) !important;
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Writing modes */
.writing-editor.typewriter-mode .ql-editor {
    font-family: 'Courier New', monospace !important;
}

.writing-editor.focus-mode .ql-editor {
    background: linear-gradient(transparent 49%, rgba(255, 255, 255, 0.05) 50%, transparent 51%) !important;
    background-size: 100% 2.4em !important;
}

.writing-editor.distraction-free .ql-toolbar {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.writing-editor.distraction-free:hover .ql-toolbar {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 1024px) {
    .left-sidebar {
        width: 300px;
    }

    .editor-layout {
        grid-template-columns: 200px 1fr;
        gap: 1rem;
    }

    .header {
        padding: 1rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .left-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .editor-area {
        padding: 1rem;
    }

    .editor-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chapters-panel {
        order: 2;
        max-height: 200px;
    }

    .editor-main {
        order: 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .logo h1 {
        display: none;
    }

    .header-actions .btn {
        padding: 0.5rem;
    }

    .header-actions .btn span {
        display: none;
    }

    .modal-content {
        width: 95vw;
        margin: 1rem;
    }

    .download-options {
        grid-template-columns: 1fr;
    }

    .sidebar-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem;
    }

    .editor-area {
        padding: 0.75rem;
    }

    .cover-options {
        flex-direction: column;
    }

    .format-options {
        gap: 0.5rem;
    }

    .checkbox-label {
        padding: 0.5rem;
    }
}

/* Image editing styles */
.image-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

.image-wrapper {
    position: relative;
}

.image-caption {
    background: var(--bg-tertiary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem !important;
    border: 1px solid var(--border-color);
}

.image-edit-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.image-edit-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-primary);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-primary);
}

/* Image preview container */
.image-preview-container {
    text-align: center;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Menu Section */
.main-menu-section {
    margin-top: 4rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.main-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 0.75rem;
    min-width: 80px;
}

.main-menu-item:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

.main-menu-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.main-menu-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* AdSense compliance improvements */
.app-container {
    position: relative;
}

/* Ensure content is substantial for AdSense */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .main-menu {
        gap: 1.5rem;
    }

    .main-menu-item {
        padding: 0.75rem;
        min-width: 60px;
    }

    .main-menu-item i {
        font-size: 1.25rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
