/* ═══════════════════════════════════════════════════════════
   İskenderzade Admin Panel — Dual Theme (Dark/Light)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── DARK THEME (Default) ─────────────────────────────── */
:root, [data-theme="dark"] {
    --bg-primary: #1a1f2e;
    --bg-secondary: #212736;
    --bg-card: #272d3d;
    --bg-input: #1e2433;
    --bg-hover: #2d3548;
    --bg-sidebar: #161b27;

    --accent: #ff6b35;
    --accent-hover: #ff8a5c;
    --accent-glow: rgba(255, 107, 53, 0.25);
    --accent-subtle: rgba(255, 107, 53, 0.08);

    --success: #00c853;
    --success-bg: rgba(0, 200, 83, 0.12);
    --danger: #ff3d57;
    --danger-bg: rgba(255, 61, 87, 0.12);
    --warning: #ffc107;
    --warning-bg: rgba(255, 193, 7, 0.12);
    --info: #2196f3;
    --info-bg: rgba(33, 150, 243, 0.12);

    --text-primary: #e2e4e9;
    --text-secondary: #8b8fa7;
    --text-muted: #5a5f75;

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ─── LIGHT THEME ──────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f4f5f7;
    --bg-hover: #e8eaed;
    --bg-sidebar: #ffffff;

    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --accent-subtle: rgba(255, 107, 53, 0.06);
    --success-bg: rgba(0, 200, 83, 0.08);
    --danger-bg: rgba(255, 61, 87, 0.08);
    --warning-bg: rgba(255, 193, 7, 0.08);
    --info-bg: rgba(33, 150, 243, 0.08);
}

/* ─── Design Tokens ────────────────────────────────────── */
:root {
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════════════════════════ */

.theme-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3px;
    cursor: pointer;
    gap: 0;
}

.theme-toggle .toggle-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.theme-toggle .toggle-option.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════════ */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 53, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(33, 150, 243, 0.04) 0%, transparent 50%),
        var(--bg-primary);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeSlideUp 0.6s ease-out;
}

.login-logo { text-align: center; margin-bottom: 32px; }

.login-logo .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), #ff8a5c);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 32px var(--accent-glow);
}

.login-logo h1 { font-size: 1.6rem; font-weight: 700; }
.login-logo p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
    border: 1px solid rgba(255, 61, 87, 0.2);
}
.login-error.show { display: block; animation: shake 0.4s ease; }

/* ─── Form Elements ────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-control::placeholder { color: var(--text-muted); }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9ab0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
select.form-control option { background: var(--bg-secondary); color: var(--text-primary); }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #e85d2c);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-accent:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #00a846; }

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 61, 87, 0.2);
}
.btn-danger:hover { background: rgba(255, 61, 87, 0.2); }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN LAYOUT
   ═══════════════════════════════════════════════════════════ */

.admin-layout { display: none; min-height: 100vh; }
.admin-layout.active { display: flex; }

/* ─── Sidebar ──────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform 0.3s ease, background 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), #ff8a5c);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-brand h2 { font-size: 1.1rem; font-weight: 700; }
.sidebar-brand small { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; display: block; }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }

.nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 12px 12px 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2px;
    font-weight: 500;
    font-size: 0.9rem;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-subtle); color: var(--accent); }
.nav-item i { width: 20px; text-align: center; font-size: 1rem; }

.nav-item .badge {
    margin-left: auto;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.sidebar-footer { padding: 16px 12px; border-top: 1px solid var(--border); }
.sidebar-footer .nav-item { color: var(--danger); }
.sidebar-footer .nav-item:hover { background: var(--danger-bg); }

/* ─── Main Content ─────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* ─── Top Bar ──────────────────────────────────────────── */
.topbar {
    height: 64px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background 0.3s ease;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-left h2 { font-size: 1.2rem; font-weight: 700; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.topbar-right { display: flex; align-items: center; gap: 12px; }

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #ff8a5c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.user-info span { font-weight: 600; font-size: 0.85rem; }

/* ─── Page Content ─────────────────────────────────────── */
.page-content { padding: 32px; flex: 1; }
.page-section { display: none; }
.page-section.active { display: block; animation: fadeIn 0.3s ease; }

/* ─── Stats ────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-icon.orange { background: var(--accent-subtle); color: var(--accent); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }

.stat-info h3 { font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.stat-info p { color: var(--text-secondary); font-size: 0.85rem; }

/* ─── Data Table ───────────────────────────────────────── */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: background 0.3s ease;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}
.table-header h3 { font-size: 1rem; font-weight: 700; }

.table-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.search-box { position: relative; }
.search-box input {
    padding: 8px 14px 8px 36px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    width: 220px;
    transition: var(--transition);
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}
[data-theme="dark"] .data-table thead th { background: rgba(0, 0, 0, 0.2); }

.data-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.data-table tbody tr:hover { background: var(--bg-hover); }
.data-table tbody tr:last-child { border-bottom: none; }

.data-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    vertical-align: middle;
}

.product-cell { display: flex; align-items: center; gap: 12px; }

.product-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-input);
    flex-shrink: 0;
}

.product-name-text { font-weight: 600; line-height: 1.3; }

.product-desc-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-popular {
    background: var(--warning-bg);
    color: var(--warning);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}
.badge-normal {
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.price-cell { font-weight: 700; color: var(--accent); }

.old-price-cell {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 6px;
}

.category-badge {
    background: var(--info-bg);
    color: var(--info);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.action-btns { display: flex; gap: 6px; }
.action-btns .btn-icon { width: 32px; height: 32px; font-size: 0.85rem; }

.btn-edit {
    background: var(--info-bg);
    color: var(--info);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-edit:hover { background: rgba(33, 150, 243, 0.25); }

.btn-delete {
    background: var(--danger-bg);
    color: var(--danger);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-delete:hover { background: rgba(255, 61, 87, 0.25); }

.table-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.table-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; }

.table-responsive { overflow-x: auto; }

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-check { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.form-check label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

/* ─── File Upload ──────────────────────────────────────── */
.file-upload-area {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    position: relative;
}
.file-upload-area:hover { border-color: var(--accent); background: var(--accent-subtle); }
.file-upload-area.dragging { border-color: var(--accent); background: var(--accent-subtle); }

.file-upload-area i { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 8px; display: block; }
.file-upload-area p { font-size: 0.85rem; color: var(--text-muted); }
.file-upload-area .file-name {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 6px;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.image-preview {
    margin-top: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-height: 120px;
}
.image-preview img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════
   SETTINGS PAGE
   ═══════════════════════════════════════════════════════════ */

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    transition: background 0.3s ease;
}

.settings-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.settings-card-header i { color: var(--accent); font-size: 1.1rem; }
.settings-card-header h3 { font-size: 1rem; font-weight: 700; }

.settings-card-body { padding: 24px; }

.settings-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.4s ease;
    border-left: 3px solid var(--accent);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }

.toast-message { flex: 1; font-size: 0.88rem; font-weight: 500; }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════
   CONFIRM DIALOG
   ═══════════════════════════════════════════════════════════ */

.confirm-dialog .modal { max-width: 400px; text-align: center; }

.confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--danger-bg);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}

.confirm-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalSlideIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
    .page-content { padding: 20px 16px; }
    .topbar { padding: 0 16px; }
    .form-row { grid-template-columns: 1fr; }
    .table-actions { width: 100%; }
    .search-box input { width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    .modal { max-width: 100%; margin: 10px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .login-card { padding: 32px 24px; }
}
