/**
 * Note It On - Professional UI
 * Clean, minimal design inspired by iCloud with paper aesthetic
 */

:root {
    --color-bg: #f5f5f7;
    --color-paper: #ffffff;
    --color-paper-lines: #e8e4dc;
    --color-text: #3a3a3c;
    --color-text-secondary: #636366;
    --color-text-muted: #8e8e93;
    --color-accent: #d4764a;
    --color-accent-hover: #c4663a;
    --color-success: #34c759;
    --color-danger: #ff3b30;
    --color-border: #d2d2d7;
    --color-border-light: #e5e5ea;
    --color-input-bg: #f5f5f7;
    --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --font-handwritten: 'Marker Felt', 'Segoe Print', 'Bradley Hand', cursive;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-system);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

/* Header */
.site-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--color-text);
}

.logo-mark { font-size: 1.125rem; opacity: 0.8; }
.logo-text { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.02em; }

/* Desktop Navigation (header) */
.main-nav { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover { 
    color: var(--color-text); 
    background: rgba(0,0,0,0.05); 
}

.nav-link.active { 
    color: var(--color-accent); 
    background: rgba(212,118,74,0.1);
}

.nav-link--logout { 
    background: none; 
    border: none; 
    cursor: pointer; 
    font-family: inherit;
    padding: 8px 14px;
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--color-border-light);
    margin: 0 4px;
}

.logout-form { display: inline; }

/* Hide icon-only elements on desktop */
.nav-link .nav-icon { display: none; }
.nav-link .nav-text { display: inline; }

/* Mobile Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-border-light);
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
}

.bottom-nav__container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 6px 14px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.5625rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.bottom-nav__link:hover,
.bottom-nav__link.active {
    color: var(--color-accent);
}

.bottom-nav__link.active {
    background: rgba(212,118,74,0.1);
}

.bottom-nav__icon {
    font-size: 1.25rem;
    line-height: 1;
}

.bottom-nav__label {
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Mobile Styles */
@media (max-width: 640px) {
    /* Hide desktop nav on mobile */
    .main-nav {
        display: none;
    }
    
    /* Show bottom nav on mobile */
    .bottom-nav {
        display: block;
    }
    
    /* Add padding to main content for bottom nav */
    .main-content {
        padding-bottom: 70px;
    }
    
    /* Adjust header for mobile */
    .site-header .container {
        height: 40px;
    }
    
    .logo-mark {
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 0.9375rem;
    }
    
    /* Hide footer on mobile (bottom nav takes its place) */
    .site-footer {
        display: none;
    }
}

/* Tablet - show icons with text */
@media (min-width: 641px) and (max-width: 900px) {
    .nav-link .nav-icon { display: inline; }
    .nav-link .nav-text { display: inline; }
    .nav-link { padding: 8px 12px; font-size: 0.8125rem; }
}

.mobile-menu-toggle { display: none; }

/* Main */
.main-content { min-height: calc(100vh - 80px); padding: 16px 0; }

@media (max-width: 640px) {
    .main-content { padding: 4px 0; padding-bottom: 70px; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--primary { background: var(--color-accent); color: white; }
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--secondary { background: var(--color-input-bg); color: var(--color-text); }
.btn--secondary:hover { background: var(--color-border-light); }
.btn--danger { background: var(--color-danger); color: white; }
.btn--ghost { background: transparent; color: var(--color-text-secondary); }
.btn--ghost:hover { background: rgba(0,0,0,0.04); color: var(--color-text); }
.btn--full { width: 100%; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; }

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(212,118,74,0.15); }
.form-input::placeholder { color: var(--color-text-muted); }

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 32px;
}

.auth-container { width: 100%; max-width: 400px; }

.auth-card {
    background: var(--color-paper);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px;
}

.auth-title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--color-text-secondary); margin-bottom: 32px; }
.auth-form { margin-bottom: 24px; }
.auth-footer { text-align: center; font-size: 0.9375rem; color: var(--color-text-secondary); }
.auth-footer a { font-weight: 500; }

/* Slip Container */
.slip-page { padding: 8px 0; }

.slip-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
}

.slip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px;
}

.slip-title { font-size: 1.25rem; font-weight: 600; }

.slip-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slip-date {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Paper Card */
.slip-paper, .slip {
    background: var(--color-paper);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.slip__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border-light);
}

.slip__title { font-size: 1.125rem; font-weight: 600; }

.slip__paper {
    padding: 20px;
    min-height: 280px;
}

/* Slip Items */
.slip__items, .slip-items { list-style: none; }

.slip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-paper-lines);
    transition: all var(--transition-fast);
    width: 100%;
    overflow: hidden;
}

.slip-item:last-child { border-bottom: none; }

/* Checkbox */
.slip-item__check, .slip-checkbox {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-paper);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.slip-item__check:hover { border-color: var(--color-accent); }

.slip-item.is-completed .slip-item__check,
.slip-item.completed .slip-checkbox {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.check-mark { font-size: 0.875rem; line-height: 1; }

/* Item Input */
.slip-item__input {
    flex: 1;
    min-width: 0;
    padding: 4px 0;
    font-family: var(--font-handwritten);
    font-size: 1.25rem;
    color: var(--color-text);
    background: transparent;
    border: none;
    outline: none;
    line-height: 1.4;
    width: 100%;
}

.slip-item__input::placeholder { color: var(--color-text-muted); }

.slip-item.is-completed .slip-item__input {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

/* Drag & Delete */
.slip-item__drag {
    width: 24px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: grab;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.slip-item:hover .slip-item__drag { opacity: 0.5; }
.slip-item__drag:hover { opacity: 1 !important; }

.slip-item__delete {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
}

.slip-item:hover .slip-item__delete { opacity: 1; }
.slip-item__delete:hover { background: rgba(255,59,48,0.1); color: var(--color-danger); }

/* Empty Lines */
.slip__empty-lines { margin-top: 8px; }

.slip__empty-line {
    padding: 14px 0;
    padding-left: 76px; /* Matches: drag(24) + gap(14) + checkbox(24) + gap(14) */
    border-bottom: 1px solid var(--color-paper-lines);
}

.slip__empty-line:last-child { border-bottom: none; }

.slip-item__input--empty { 
    color: var(--color-text-muted); 
    width: 100%;
    display: block;
}

/* Slip Footer */
.slip__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--color-input-bg);
    border-top: 1px solid var(--color-border-light);
}

.slip__info { display: flex; align-items: center; gap: 12px; }
.line-count { font-size: 0.8125rem; color: var(--color-text-muted); }

.btn--text {
    background: none;
    color: var(--color-accent);
    padding: 4px 8px;
    font-size: 0.8125rem;
}

.btn--text:hover { background: rgba(212,118,74,0.1); }

.btn--outline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    padding: 8px 14px;
    font-size: 0.8125rem;
}

.btn--outline:hover { background: var(--color-paper); border-color: var(--color-accent); color: var(--color-accent); }
.btn--outline:disabled { opacity: 0.5; cursor: not-allowed; }

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.is-active, .modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    background: var(--color-paper);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: calc(100% - 48px);
    max-width: 380px;
    padding: 32px;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal.is-active .modal__content,
.modal[aria-hidden="false"] .modal__content {
    transform: scale(1);
}

.modal__title { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.modal__desc { color: var(--color-text-secondary); margin-bottom: 24px; }

.modal__actions { display: flex; gap: 12px; margin-bottom: 16px; }
.modal__actions .btn { flex: 1; flex-direction: column; padding: 16px; }
.btn__hint { font-size: 0.75rem; font-weight: 400; opacity: 0.7; margin-top: 4px; }

.modal__close {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    background: none;
    border: none;
    cursor: pointer;
}

.modal__close:hover { color: var(--color-text); }

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 16px auto;
    max-width: 560px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
}

.alert--success { background: rgba(52,199,89,0.1); color: #248a3d; border: 1px solid rgba(52,199,89,0.2); }
.alert--error { background: rgba(255,59,48,0.1); color: #d70015; border: 1px solid rgba(255,59,48,0.2); }
.alert__icon { font-weight: 600; }

/* Dormant Page */
.dormant-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.page-header {
    margin-bottom: 24px;
    padding: 0 4px;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--color-paper);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.empty-state__icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.empty-state__desc {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Dormant Grid - Card Layout */
.dormant-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .dormant-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dormant Card */
.dormant-card {
    display: flex;
    flex-direction: column;
    background: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.dormant-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.dormant-card:active {
    transform: translateY(0);
}

/* Card Paper Area */
.dormant-card__paper {
    padding: 16px;
    min-height: 120px;
    background: var(--color-paper);
    border-bottom: 1px solid var(--color-border-light);
}

.dormant-card__line {
    padding: 6px 0;
    font-family: var(--font-handwritten);
    font-size: 0.9375rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-paper-lines);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dormant-card__line:last-child {
    border-bottom: none;
}

.dormant-card__line.is-completed {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.dormant-card__more {
    padding-top: 8px;
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
}

.dormant-card__empty {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-style: italic;
    padding: 20px 0;
    text-align: center;
}

/* Card Footer */
.dormant-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--color-input-bg);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.dormant-card__date {
    font-weight: 500;
}

.dormant-card__count {
    background: var(--color-border-light);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 16px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    background: var(--color-paper);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination__link:hover {
    background: var(--color-accent);
    color: white;
}

.pagination__info {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
}

.pagination__total {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
}

/* View Archived Slip */
.archived-slip {
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
}

.archived-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.archived-title {
    font-size: 1.125rem;
    font-weight: 600;
}

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

.archived-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 8px 0;
}

.archived-back:hover {
    text-decoration: underline;
}

.archived-paper {
    background: var(--color-paper);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    opacity: 0.9;
}

.archived-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-paper-lines);
}

.archived-item:last-child {
    border-bottom: none;
}

.archived-item__check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.archived-item.is-completed .archived-item__check {
    background: var(--color-success);
    color: white;
}

.archived-item__content {
    flex: 1;
    font-family: var(--font-handwritten);
    font-size: 1.125rem;
    color: var(--color-text);
    line-height: 1.4;
}

.archived-item.is-completed .archived-item__content {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.archived-footer {
    margin-top: 24px;
    text-align: center;
}

/* Mobile adjustments for dormant */
@media (max-width: 640px) {
    .dormant-page {
        padding: 0 12px;
    }
    
    .page-header {
        margin-bottom: 16px;
    }
    
    .dormant-grid {
        gap: 12px;
    }
    
    .dormant-card__paper {
        padding: 12px;
        min-height: 100px;
    }
    
    .dormant-card__line {
        font-size: 0.875rem;
        padding: 5px 0;
    }
    
    .dormant-card__footer {
        padding: 10px 12px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .pagination__link {
        padding: 8px 14px;
    }
    
    /* Slip Pad Mobile Adjustments */
    .slip-page {
        padding: 2px 0;
    }
    
    .slip-container {
        padding: 0 8px;
    }
    
    .slip-header {
        margin-bottom: 6px;
    }
    
    .slip-title {
        font-size: 0.9375rem;
    }
    
    .slip-date {
        font-size: 0.75rem;
    }
    
    .slip__paper {
        padding: 12px 10px;
        min-height: auto;
    }
    
    .slip-item {
        gap: 8px;
        padding: 8px 0;
    }
    
    .slip-item__check {
        width: 18px;
        height: 18px;
    }
    
    .slip-item__input {
        font-size: 16px; /* Prevents iOS zoom on focus */
        line-height: 1.25;
    }
    
    .slip-item__drag {
        width: 18px;
    }
    
    .slip-item__delete {
        width: 24px;
        height: 24px;
    }
    
    .slip__empty-line {
        padding: 8px 0;
        padding-left: 26px; /* Adjusted for smaller elements: checkbox(18) + gap(8) */
    }
    
    .slip-item__input--empty {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .slip__footer {
        padding: 10px 12px;
    }
    
    .slip__info {
        gap: 10px;
    }
    
    .line-count {
        font-size: 0.75rem;
    }
    
    .btn--text {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
    
    .btn--outline {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }
}

/* Admin */
.admin-container { max-width: 900px; margin: 0 auto; padding: 20px; }
.admin-header { margin-bottom: 24px; }
.admin-title { font-size: 1.5rem; font-weight: 700; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }

.stat-card {
    background: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.stat-value { font-size: 2rem; font-weight: 700; color: var(--color-accent); margin-bottom: 4px; }
.stat-label { font-size: 0.875rem; color: var(--color-text-secondary); }

.admin-table {
    width: 100%;
    background: var(--color-paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border-collapse: collapse;
}

.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; }
.admin-table th { background: var(--color-input-bg); font-weight: 500; font-size: 0.8125rem; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table tr:not(:last-child) td { border-bottom: 1px solid var(--color-border-light); }

/* Footer */
.site-footer { padding: 12px; text-align: center; color: var(--color-text-muted); font-size: 0.75rem; }
.footer-text { margin: 0; }

/* Error Pages */
.error-page { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.error-code { font-size: 5rem; font-weight: 700; color: var(--color-text-muted); line-height: 1; margin-bottom: 16px; }
.error-title { font-size: 1.5rem; margin-bottom: 8px; }
.error-text { color: var(--color-text-secondary); margin-bottom: 24px; }

/* Save Indicator */
.save-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
}

.save-indicator.saving {
    background: var(--color-accent);
    animation: pulse 1s infinite;
}

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

/* Mobile */
@media (max-width: 640px) {
    .site-header .container { padding: 0 16px; }
    .nav-link { padding: 8px; font-size: 0.875rem; }
    .slip-container, .dormant-container { padding: 16px; }
    .slip__paper { padding: 16px; }
    .slip__footer { padding: 12px 16px; }
    .auth-card { padding: 32px; }
    .modal__content { width: calc(100% - 32px); padding: 24px; }
}
