/**
 * Polika Platform - Designer Portal Styles
 * Modular, Mobile-First & Responsive CSS Architecture
 */

:root {
    --designer-sidebar-width: 260px;
    --designer-bg-dark: #0f0f0f;
    --designer-card-bg: #1e1e1e;
    --designer-sidebar-bg: #1a1a1a;
    --designer-border: rgba(255, 255, 255, 0.05);
    --designer-border-hover: rgba(255, 255, 255, 0.12);
    --designer-topbar-height: 68px;
    --designer-accent-glow: rgba(0, 240, 255, 0.15);
    --touch-target-min: 44px;
}

/* Base Body */
body {
    background-color: #121212;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ==========================================================================
   Login & Status Sections
   ========================================================================== */
#login-section {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    padding: 1.5rem;
}

.login-card {
    background: var(--designer-card-bg);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--designer-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: var(--text-primary);
}

#status-section {
    display: none;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    min-height: var(--touch-target-min);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Dashboard Shell Layout
   ========================================================================== */
#dashboard-section {
    display: none;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.admin-layout {
    display: flex;
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Sidebar & Off-Canvas Mobile Drawer
   ========================================================================== */
.sidebar {
    background: var(--designer-sidebar-bg);
    border-right: 1px solid var(--designer-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex-shrink: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Desktop Sidebar (>= 1024px) */
@media (min-width: 1024px) {
    .sidebar {
        width: var(--designer-sidebar-width);
        position: static;
        transform: none !important;
        box-shadow: none;
        z-index: 10;
    }

    .drawer-close-btn {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* Mobile & Tablet Drawer (< 1024px) */
@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 82vw);
        height: 100%;
        height: 100dvh;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.7);
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

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

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--designer-border);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.sidebar-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.sidebar-brand-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
}

/* Mobile Drawer Close Button */
.drawer-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--designer-border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Navigation Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-tab {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 500;
    font-size: 0.95rem;
    user-select: none;
    min-height: var(--touch-target-min);
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-tab.active {
    background: var(--designer-accent-glow);
    color: var(--accent-color);
    border: 1px solid rgba(0, 240, 255, 0.25);
}

.nav-tab i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--designer-border);
}

/* Mobile Backdrop Overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1050;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Main Content & Top Bar
   ========================================================================== */
.main-content {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--designer-bg-dark);
}

.top-bar {
    padding: 1rem clamp(1rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--designer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--designer-topbar-height);
    gap: 1rem;
    flex-shrink: 0;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.top-bar-user {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (min-width: 640px) {
    .top-bar-user {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }
}

.welcome-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.user-display-name {
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--designer-border);
    color: var(--text-primary);
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
    color: var(--accent-color);
}

@media (max-width: 1023px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.top-bar-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Content Area & Tabs
   ========================================================================== */
.content-wrapper {
    padding: clamp(1rem, 3vw, 2rem);
    overflow-y: auto;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.tab-header {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-header h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   Stats Grid
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.stat-card {
    background: var(--designer-card-bg);
    padding: clamp(1.2rem, 2.5vw, 1.5rem);
    border-radius: 12px;
    border: 1px solid var(--designer-border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    border-color: var(--designer-border-hover);
}

.stat-label, .card-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value, .card-value {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--accent-color);
    margin: 0.4rem 0;
    word-break: break-word;
}

/* Combined Earnings & Royalty Banner Card */
.earnings-hero-card {
    background: linear-gradient(135deg, rgba(20, 20, 28, 0.95) 0%, rgba(12, 12, 18, 0.98) 100%);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 14px;
    padding: clamp(1.25rem, 2.8vw, 1.75rem);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.earnings-hero-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.earnings-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.earnings-hero-title {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 7px;
}

.royalty-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(0, 240, 255, 0.28);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.royalty-rate-number {
    font-weight: 700;
    color: white;
}

.earnings-hero-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.earnings-metrics-group {
    display: flex;
    align-items: baseline;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.earnings-metric-item {
    display: flex;
    flex-direction: column;
}

.earnings-metric-sublabel {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.earnings-available-amount {
    font-size: clamp(1.75rem, 4.5vw, 2.4rem);
    font-weight: 700;
    color: #34d399;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.earnings-total-amount,
.earnings-main-amount {
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.1;
}

.earnings-hero-action {
    flex-shrink: 0;
}

.btn-hero-withdraw {
    background: linear-gradient(135deg, var(--accent-color) 0%, #00b4d8 100%);
    color: #050811;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.25);
    transition: all 0.2s ease;
    min-height: 42px;
}

.btn-hero-withdraw:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 240, 255, 0.38);
    filter: brightness(1.08);
}

.btn-hero-withdraw:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .earnings-hero-body {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-hero-withdraw {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Search & Filter Controls
   ========================================================================== */
.table-header-actions {
    margin-bottom: 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    min-width: min(100%, 260px);
    position: relative;
}

.search-container .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
}

.search-container input {
    padding-left: 38px;
    margin-bottom: 0;
}

.filter-select {
    width: 100%;
    max-width: 220px;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .table-header-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-select {
        max-width: 100%;
    }
}

/* ==========================================================================
   Tables & Responsive Mobile Card View Switcher
   ========================================================================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--designer-border);
    margin-top: 1rem;
    padding: 0;
}

/* Responsive Table vs Card List Display Switch */
@media (min-width: 768px) {
    .desktop-table-container {
        display: block !important;
    }
    .mobile-card-list {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .desktop-table-container {
        display: none !important;
    }
    .mobile-card-list {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
    }
}

.admin-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    color: var(--text-primary);
}

.admin-table th,
.admin-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.75px;
    background: rgba(255, 255, 255, 0.015);
    white-space: nowrap;
}

.admin-table td {
    white-space: nowrap;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Mobile Record Cards (Compact & Best UX)
   ========================================================================== */
.mobile-record-card {
    background: var(--designer-card-bg);
    border: 1px solid var(--designer-border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s ease;
}

.mobile-record-card:active {
    border-color: rgba(0, 240, 255, 0.3);
}

.card-main-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.card-thumb-wrapper {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-thumb-wrapper .file-icon {
    font-size: 1.4rem;
    color: #aaa;
}

.card-content-wrapper {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-item-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-color);
    white-space: nowrap;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.card-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.card-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-status-pill.status-live,
.card-status-pill.status-paid,
.card-status-pill.status-approved {
    background: rgba(40, 167, 69, 0.12);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.card-status-pill.status-ready {
    background: rgba(23, 162, 184, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.card-status-pill.status-pending {
    background: rgba(255, 193, 7, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.card-status-pill.status-revision {
    background: rgba(253, 126, 20, 0.12);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.25);
}

.card-status-pill.status-rejected {
    background: rgba(220, 53, 69, 0.12);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Card Actions Bar */
.card-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.65rem;
    margin-top: 0.15rem;
    gap: 0.5rem;
}

.btn-card-action {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    min-height: 34px;
}

.btn-card-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.btn-card-action.btn-edit {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
    background: rgba(96, 165, 250, 0.08);
}

.btn-card-action.btn-edit:hover {
    background: #2563eb;
    color: white;
}

.btn-card-action.btn-delete {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
    background: rgba(248, 113, 113, 0.08);
}

.btn-card-action.btn-delete:hover {
    background: #dc2626;
    color: white;
}

.btn-card-action.btn-history {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    border-color: rgba(0, 240, 255, 0.25);
}

.btn-card-action.btn-history:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
}

/* Order ID Chip */
.card-order-chip {
    font-family: monospace;
    font-size: 0.8rem;
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-order-chip:hover, .card-order-chip:active {
    background: rgba(0, 240, 255, 0.12);
    color: var(--accent-color);
    border-color: rgba(0, 240, 255, 0.3);
}

/* ==========================================================================
   Withdrawals Section Layout
   ========================================================================== */
.withdrawals-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .withdrawals-layout {
        display: grid;
        grid-template-columns: minmax(320px, 380px) 1fr;
        gap: 2rem;
        align-items: start;
    }
}

.withdrawal-col {
    min-width: 0;
    width: 100%;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem;
}

.modal-content {
    background: #242424;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--designer-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .modal-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Notification Preferences & Switches
   ========================================================================== */
#notification-prefs-form input[type="checkbox"]:checked + span:first-of-type {
    background: var(--accent-color);
}
#notification-prefs-form input[type="checkbox"]:checked ~ span:last-of-type {
    transform: translateX(22px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-admin {
    width: 100%;
    padding: 12px 18px;
    background: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--touch-target-min);
}

.btn-admin:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-admin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    min-height: var(--touch-target-min);
}

.btn-logout:hover {
    background: #ff3b30;
    color: white;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.sales-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid var(--accent-color);
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.card-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    background: var(--designer-card-bg);
    border-radius: 12px;
    border: 1px solid var(--designer-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
