:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-light: #e8eaed;
    --text-primary: #000000;
    --text-secondary: #5f6368;
    --text-tertiary: #9aa0a6;
    --primary: #000000;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
}

.header a {
    color: white;
    text-decoration: none;
}

.header a:hover {
    text-decoration: underline;
}

.content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Tables */
.table-wrapper {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-primary);
    overflow-x: auto;
    margin-bottom: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
}

tr:hover {
    background: var(--bg-secondary);
}

/* Form Elements */
input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-dark { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-warning { background: var(--warning); color: black; }
.btn-secondary { background: #6c757d; color: white; }
.btn-info { background: var(--info); color: white; }
.btn-outline { 
    background: transparent; 
    border: 1px solid var(--border-light); 
    color: var(--text-primary); 
}

.btn-outline.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-sm { 
    padding: 8px 12px; 
    font-size: 12px; 
    min-height: 32px;
}

.btn-group {
    display: flex;
    gap: 4px;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-left-color: var(--success);
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-left-color: var(--danger);
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    border-left-color: var(--warning);
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    border-left-color: var(--info);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.view-toggle .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* Card Layouts */
.roommate-cards, .expense-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.roommate-card, .expense-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.roommate-card:hover, .expense-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.roommate-header, .expense-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.roommate-header h4, .expense-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.expense-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

.roommate-details, .expense-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.roommate-actions, .expense-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active { background: var(--success); color: white; }
.status-inactive { background: var(--danger); color: white; }
.status-archived { background: var(--warning); color: black; }

/* Balance Styles */
.balance-positive { color: var(--success); font-weight: 600; }
.balance-negative { color: var(--danger); font-weight: 600; }
.balance-neutral { color: var(--text-secondary); }

/* Actions */
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.add-row-btn-compact {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    transform: scale(1.2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-primary);
    margin: 5% auto;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.upload-area i {
    font-size: 48px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    width: 0%;
    transition: width 0.3s ease;
}

/* Attachment Styles */
.attachment-upload {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attachment-status {
    font-size: 14px;
    color: var(--text-secondary);
}

.attachment-preview {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

/* Archive Action Dropdown */
.archive-actions-dropdown {
    position: relative;
    display: inline-block;
}

.archive-actions-toggle {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-actions-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    z-index: 100;
    display: none;
}

.archive-actions-menu.show {
    display: block;
}

.archive-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.archive-action-item:hover {
    background: var(--bg-secondary);
}

.archive-action-item i {
    width: 16px;
    text-align: center;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Budget Alerts */
.budget-alert {
    border-left: 4px solid;
    margin-bottom: 16px;
    border-radius: var(--radius);
    animation: slideInDown 0.3s ease;
}

.budget-alert-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.budget-alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.budget-alert-icon .fas {
    font-size: 20px;
}

.budget-alert-text {
    flex: 1;
    min-width: 0;
}

.budget-alert-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.budget-alert-details {
    font-size: 14px;
    margin-bottom: 4px;
}

.budget-alert-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.budget-alert.alert-warning {
    border-left-color: var(--warning);
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.budget-alert.alert-danger {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Archive Navigation */
.archive-navigation {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.archive-nav-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.archive-nav-buttons .btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
    font-weight: 600;
}

.archive-notice {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.archive-notice i {
    font-size: 16px;
    opacity: 0.9;
}

.archive-badge {
    background: var(--warning);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.warning-text {
    color: var(--danger);
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background: #f8d7da;
    border-radius: var(--radius);
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-action-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    text-align: center;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }
    
    body {
        background: var(--bg-primary);
        font-size: 14px;
    }

    .header {
        padding: 16px 12px;
        position: relative;
    }

    .header h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .header p {
        font-size: 12px;
    }

    .content {
        padding: 12px;
        gap: 12px;
    }

    .section {
        padding: 16px;
        border-radius: var(--radius);
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    /* Enhanced Stats Grid for Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
        text-align: center;
    }

    .stat-label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .stat-value {
        font-size: 16px;
        font-weight: 700;
    }

    /* Better Mobile Tables */
    .table-wrapper {
        border: 1px solid var(--border-light);
        border-radius: var(--radius);
        background: var(--bg-primary);
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrapper::after {
        content: '← Scroll →';
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        color: var(--text-tertiary);
        font-size: 12px;
        pointer-events: none;
        opacity: 0.7;
    }

    table {
        min-width: 700px;
        font-size: 13px;
    }

    th, td {
        padding: 12px 8px;
        white-space: nowrap;
    }

    /* Archive Actions Mobile Improvements */
    .archive-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .archive-action-btn {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 12px 16px;
        margin: 2px 0;
    }

    /* Specific column adjustments for better mobile experience */
    th:nth-child(1), td:nth-child(1) { min-width: 90px; } /* Name/Date */
    th:nth-child(2), td:nth-child(2) { min-width: 100px; } /* Email/Item */
    th:nth-child(3), td:nth-child(3) { min-width: 70px; } /* Days/Paid By */
    th:nth-child(4), td:nth-child(4) { min-width: 70px; } /* Status/Amount */
    th:nth-child(5), td:nth-child(5) { min-width: 80px; } /* Actions/Eaters */

    /* Better Input Handling */
    input, select {
        padding: 12px 10px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Better touch targets */
        border-radius: 8px;
    }

    input[type="date"] {
        min-width: 130px;
    }

    input[type="number"] {
        min-width: 70px;
    }

    /* Enhanced Button Sizes */
    .btn {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 10px;
    }

    .btn-sm {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 40px;
    }
    
    /* View Toggle Improvements */
    .view-toggle {
        width: 100%;
        justify-content: center;
        margin-bottom: 16px;
    }

    .view-toggle .btn {
        flex: 1;
        text-align: center;
    }

    /* Card layouts for mobile */
    .expense-card {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 12px;
        padding: 14px;
    }

    .expense-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .expense-amount {
        text-align: left;
        font-size: 18px;
    }

    .expense-meta {
        flex-direction: column;
        gap: 6px;
    }

    /* Roommate cards for mobile */
    .roommate-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .roommate-card {
        padding: 14px;
    }

    .roommate-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }

    /* Quick Actions */
    .quick-actions {
        justify-content: stretch;
        gap: 8px;
    }

    .quick-action-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 12px 8px;
    }

    /* Modal improvements for mobile */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        border-radius: 16px;
    }

    .modal-body {
        padding: 16px;
        max-height: 70vh;
        overflow-y: auto;
    }

    .modal-footer {
        flex-direction: column;
        gap: 8px;
        padding: 0 16px 16px;
    }

    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Archive specific mobile styles */
    .archive-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    #archiveViewerModal .modal-content {
        width: 98%;
        margin: 1% auto;
        height: 96vh;
    }

    /* Budget Alerts Mobile Styling */
    .budget-alert {
        margin: 0 -12px 16px -12px;
        border-radius: 0;
        border-left: none;
        border-top: 4px solid;
    }

    .budget-alert .fas {
        font-size: 20px;
    }

    /* Actions Grid Improvements */
    .actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Settlement Table Mobile Fix */
    #settlementTable {
        min-width: 500px;
    }

    #settlementBody td {
        padding: 10px 6px;
    }

    /* Archive Navigation Mobile */
    .archive-navigation {
        padding: 16px;
        margin: 0 -12px 16px -12px;
        border-radius: 0;
    }
    
    .archive-nav-buttons {
        flex-direction: column;
    }
    
    .archive-nav-buttons .btn {
        min-width: 100%;
    }
    
    .archive-notice {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* Button Group Mobile */
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn-sm {
        min-width: 100%;
        margin: 2px 0;
    }

    /* Archive Actions Dropdown Mobile */
    .archive-actions-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 60vh;
        overflow-y: auto;
    }

    .archive-action-item {
        padding: 16px 20px;
        font-size: 16px;
    }
}

/* Very Small Screens (iPhone SE etc) */
@media (max-width: 380px) {
    .header {
        padding: 12px 10px;
    }

    .header h1 {
        font-size: 18px;
    }

    .content {
        padding: 8px;
    }

    .section {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-value {
        font-size: 15px;
    }

    th, td {
        padding: 8px 6px;
        font-size: 12px;
    }

    table {
        min-width: 600px;
    }

    input, select {
        padding: 10px 8px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 14px;
        font-size: 14px;
    }

    .expense-card, .roommate-card {
        padding: 10px;
    }

    .archive-section {
        padding: 10px;
        margin: 12px 0;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .stat-card:hover, .expense-card:hover, .roommate-card:hover {
        transform: none;
    }
    
    /* Increase tap targets */
    .btn-sm {
        min-height: 36px;
        min-width: 36px;
    }
    
    /* Better scrolling momentum */
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}
/* Archive Editor Styles */
.archive-editor-sidebar {
    background: #f8f9fa;
    border-right: 1px solid var(--border-light);
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}

.archive-editor-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.archive-stats-panel {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 20px;
}

.archive-stats-panel h4 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-bottom: none;
}

.archive-editor-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 15px;
}

.archive-editor-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr 1fr auto;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    align-items: center;
    background: white;
}

.archive-editor-row:hover {
    background: var(--bg-secondary);
}

.archive-editor-input {
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 14px;
}

.archive-editor-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.archive-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.archive-quick-actions .btn {
    justify-content: flex-start;
    text-align: left;
}

/* Mobile styles for archive editor */
@media (max-width: 768px) {
    .archive-editor-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .archive-editor-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    #archiveEditorModal .modal-content {
        flex-direction: column;
    }
}