/* ==========================================================================
   So Much Coffee — Global Styles
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    /* Coffee palette */
    --espresso: #2C1810;
    --dark-roast: #3E2723;
    --medium-roast: #5D4037;
    --light-roast: #8D6E63;
    --crema: #D7CCC8;
    --cream: #EFEBE9;
    --milk: #FAF8F6;
    --latte: #F5F0EB;

    /* Accent */
    --accent: #BF360C;
    --accent-light: #E64A19;
    --accent-hover: #D84315;
    --success: #2E7D32;
    --danger: #C62828;
    --warning: #F57F17;
    --info: #0277BD;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(44, 24, 16, 0.06);
    --shadow-md: 0 4px 12px rgba(44, 24, 16, 0.1);
    --shadow-lg: 0 8px 24px rgba(44, 24, 16, 0.12);
    --shadow-xl: 0 16px 48px rgba(44, 24, 16, 0.16);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --sidebar-width: 380px;
    --header-height: 56px;
    --detail-panel-height: 50vh;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--espresso);
    background: var(--milk);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

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

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

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
}

input, textarea, select {
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

/* ---------- Utility Classes ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-muted {
    color: var(--light-roast);
}

.text-small {
    font-size: 0.8125rem;
}

/* ==========================================================================
   Consumer Page (index.html)
   ========================================================================== */

/* ---------- App Layout ---------- */
.app {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ---------- Header ---------- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--espresso);
    color: var(--cream);
    display: flex;
    align-items: center;
    padding: 0 var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
}

.app-header__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.app-header__logo .logo-icon {
    font-size: 1.5rem;
}

.header-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.header-search__input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--cream);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition-fast);
}

.header-search__input::placeholder {
    color: rgba(215, 204, 200, 0.6);
}

.header-search__input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.header-search__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(215, 204, 200, 0.6);
    font-size: 0.875rem;
    pointer-events: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
}

.header-actions__count {
    font-size: 0.8125rem;
    color: var(--crema);
    white-space: nowrap;
}

.btn-toggle-sidebar {
    display: none;
    padding: 0.5rem;
    color: var(--cream);
    font-size: 1.25rem;
    border-radius: var(--radius-sm);
}

.btn-toggle-sidebar:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- Main Content ---------- */
.app-main {
    display: flex;
    width: 100%;
    height: 100vh;
    padding-top: var(--header-height);
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--milk);
    border-right: 1px solid var(--crema);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform var(--transition-slow);
    z-index: 500;
}

.sidebar__header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--crema);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--medium-roast);
}

.sidebar__sort {
    font-size: 0.75rem;
    color: var(--light-roast);
    background: var(--cream);
    border: 1px solid var(--crema);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.sidebar__list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-sm);
}

.sidebar__list::-webkit-scrollbar {
    width: 6px;
}

.sidebar__list::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar__list::-webkit-scrollbar-thumb {
    background: var(--crema);
    border-radius: var(--radius-full);
}

.sidebar__empty {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    color: var(--light-roast);
}

.sidebar__empty-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

/* ---------- Shop Card ---------- */
.shop-card {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    margin-bottom: var(--space-xs);
}

.shop-card:hover {
    background: var(--cream);
    border-color: var(--crema);
}

.shop-card--active {
    background: var(--cream);
    border-color: var(--light-roast);
    box-shadow: var(--shadow-sm);
}

.shop-card__name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-roast);
    margin-bottom: 0.125rem;
}

.shop-card__address {
    font-size: 0.8125rem;
    color: var(--light-roast);
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card__meta {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

.shop-card__tag {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--latte);
    color: var(--medium-roast);
    font-weight: 500;
}

.shop-card__tag--verified {
    background: #E8F5E9;
    color: var(--success);
}

/* ---------- Map Container ---------- */
.map-container {
    flex: 1;
    position: relative;
    height: calc(100vh - var(--header-height));
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    min-width: 220px;
    max-width: 280px;
}

.leaflet-popup-tip {
    box-shadow: var(--shadow-md) !important;
}

.map-popup {
    padding: var(--space-md);
}

.map-popup__name {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--dark-roast);
    margin-bottom: 0.25rem;
}

.map-popup__address {
    font-size: 0.8125rem;
    color: var(--light-roast);
    margin-bottom: 0.5rem;
}

.map-popup__hours {
    font-size: 0.8125rem;
    color: var(--medium-roast);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.map-popup__hours-icon {
    font-size: 0.875rem;
}

.map-popup__detail-link {
    display: block;
    text-align: center;
    margin-top: var(--space-sm);
    padding: 0.5rem;
    background: var(--espresso);
    color: var(--cream);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.map-popup__detail-link:hover {
    background: var(--dark-roast);
    color: var(--cream);
}

/* Custom map markers */
.coffee-marker {
    background: var(--espresso);
    border: 3px solid var(--cream);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.coffee-marker:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-lg);
}

.coffee-marker--active {
    background: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(191, 54, 12, 0.25), var(--shadow-lg);
}

/* ---------- Detail Panel ---------- */
.detail-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: var(--milk);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-xl);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
    max-height: var(--detail-panel-height);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.detail-panel--open {
    transform: translateY(0);
}

.detail-panel__drag-handle {
    width: 40px;
    height: 4px;
    background: var(--crema);
    border-radius: var(--radius-full);
    margin: var(--space-sm) auto;
    flex-shrink: 0;
}

.detail-panel__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 1.25rem;
    color: var(--light-roast);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
    z-index: 1;
}

.detail-panel__close:hover {
    color: var(--espresso);
}

.detail-panel__content {
    overflow-y: auto;
    padding: var(--space-md) var(--space-xl) var(--space-xl);
    flex: 1;
}

.detail-panel__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-roast);
    margin-bottom: var(--space-xs);
    padding-right: 2rem;
}

.detail-panel__summary {
    font-size: 0.9375rem;
    color: var(--medium-roast);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.detail-section {
    margin-bottom: var(--space-lg);
}

.detail-section__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light-roast);
    margin-bottom: var(--space-sm);
}

.detail-info-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: var(--espresso);
}

.detail-info-row__icon {
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
    color: var(--light-roast);
}

.detail-info-row__value {
    flex: 1;
    word-break: break-word;
}

.detail-info-row__value a {
    color: var(--accent);
}

.detail-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.detail-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--latte);
    color: var(--medium-roast);
}

.detail-tag--roaster {
    background: #FFF3E0;
    color: #E65100;
}

/* ---------- Loading Overlay ---------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--milk);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow);
}

.loading-overlay--hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--crema);
    border-top-color: var(--espresso);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    margin-top: var(--space-md);
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--medium-roast);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        bottom: 0;
        width: 100%;
        min-width: 100%;
        transform: translateX(-100%);
        z-index: 600;
        border-right: none;
    }

    .sidebar--open {
        transform: translateX(0);
    }

    .btn-toggle-sidebar {
        display: block;
    }

    .header-search {
        max-width: none;
    }

    .app-header__logo .logo-text {
        display: none;
    }

    .detail-panel {
        --detail-panel-height: 70vh;
    }
}

@media (max-width: 480px) {
    .header-search__input {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* ==========================================================================
   Admin Page (admin.html)
   ========================================================================== */

body.admin-body {
    overflow: auto;
    height: auto;
    background: var(--cream);
}

/* ---------- Admin Layout ---------- */
.admin-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: var(--espresso);
    color: var(--cream);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-header__user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.875rem;
}

.admin-header__email {
    color: var(--crema);
}

.btn-logout {
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--cream);
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- Login ---------- */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl);
    background: linear-gradient(135deg, var(--espresso) 0%, var(--dark-roast) 50%, var(--medium-roast) 100%);
}

.login-card {
    background: var(--milk);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 400px;
}

.login-card__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--dark-roast);
    text-align: center;
    margin-bottom: var(--space-xs);
}

.login-card__subtitle {
    text-align: center;
    color: var(--light-roast);
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
}

.login-card__icon {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

/* ---------- Admin Content ---------- */
.admin-content {
    flex: 1;
    padding: var(--space-xl);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.admin-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--crema);
    padding-bottom: 0;
}

.admin-tab {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--light-roast);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.admin-tab:hover {
    color: var(--medium-roast);
}

.admin-tab--active {
    color: var(--espresso);
    border-bottom-color: var(--accent);
}

.tab-panel {
    display: none;
}

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

/* ---------- Admin Toolbar ---------- */
.admin-toolbar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.admin-search {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.admin-search__input {
    width: 100%;
    padding: 0.625rem 0.75rem 0.625rem 2.25rem;
    border: 1px solid var(--crema);
    border-radius: var(--radius-md);
    background: var(--milk);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.admin-search__input:focus {
    border-color: var(--light-roast);
}

.admin-search__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-roast);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--dark-roast);
}

.btn-secondary {
    background: var(--cream);
    color: var(--espresso);
    border: 1px solid var(--crema);
}

.btn-secondary:hover {
    background: var(--crema);
}

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

.btn-danger:hover {
    background: #B71C1C;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

/* ---------- Admin Table ---------- */
.admin-table-wrapper {
    background: var(--milk);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--crema);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--cream);
}

.admin-table th {
    padding: 0.75rem var(--space-md);
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--medium-roast);
    border-bottom: 1px solid var(--crema);
}

.admin-table td {
    padding: 0.75rem var(--space-md);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--cream);
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: var(--latte);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: var(--space-xs);
}

.table-link {
    color: var(--accent);
    font-size: 0.8125rem;
}

.table-empty {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    color: var(--light-roast);
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(44, 24, 16, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    backdrop-filter: blur(2px);
}

.modal-backdrop--open {
    display: flex;
}

.modal {
    background: var(--milk);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--crema);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--dark-roast);
}

.modal__close {
    font-size: 1.25rem;
    color: var(--light-roast);
    padding: 0.25rem;
}

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

.modal__body {
    padding: var(--space-xl);
}

.modal__footer {
    padding: var(--space-md) var(--space-xl);
    border-top: 1px solid var(--crema);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--medium-roast);
    margin-bottom: 0.375rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--crema);
    border-radius: var(--radius-md);
    background: var(--milk);
    font-size: 0.9375rem;
    color: var(--espresso);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--light-roast);
    box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1);
}

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

.form-hint {
    font-size: 0.75rem;
    color: var(--light-roast);
    margin-top: 0.25rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--espresso);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: 0.75rem var(--space-md);
    border-radius: var(--radius-md);
    background: var(--espresso);
    color: var(--cream);
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    max-width: 360px;
}

.toast--success {
    background: var(--success);
}

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

.toast--warning {
    background: var(--warning);
    color: var(--espresso);
}

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

@keyframes toastOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ---------- Admin Responsive ---------- */
@media (max-width: 768px) {
    .admin-content {
        padding: var(--space-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-search {
        max-width: none;
    }
}
