/* ================================================================
   ExpoYZ - Premium B2B Platform Stylesheet
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --sidebar-width: 264px;
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --sidebar-text: #94a3b8;
    --sidebar-active: #3b82f6;
    --sidebar-active-bg: rgba(59,130,246,0.12);
    --topbar-height: 64px;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: var(--text-primary);
    font-size: 0.875rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.sidebar-logo {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo h5 {
    color: #fff;
    margin: 0;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.sidebar-logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 16px 0;
}

.nav-section-label {
    color: rgba(148,163,184,0.5);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 16px 24px 6px;
    font-weight: 600;
}

.sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 9px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
    border-left: 3px solid transparent;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.04);
    border-left-color: rgba(59,130,246,0.4);
}

.sidebar .nav-link.active {
    color: #fff;
    background: var(--sidebar-active-bg);
    border-left-color: var(--sidebar-active);
    font-weight: 600;
}

.sidebar .nav-link i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.8;
}

.sidebar .nav-link.active i { opacity: 1; }

.sidebar .nav-link.has-sub { user-select: none; cursor: pointer; }

.sidebar .nav-link.has-sub .sub-chevron {
    font-size: 0.6rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.4;
}

.sidebar .nav-link.has-sub[aria-expanded="true"] .sub-chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}

.sidebar .nav-sub-link {
    color: var(--sidebar-text) !important;
    padding: 8px 24px 8px 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 450;
    text-decoration: none !important;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.sidebar .nav-sub-link:hover {
    color: #e2e8f0 !important;
    background: rgba(255,255,255,0.04);
    border-left-color: rgba(59,130,246,0.3);
}

.sidebar .nav-sub-link.active {
    color: #fff !important;
    background: var(--sidebar-active-bg);
    border-left-color: var(--sidebar-active);
    font-weight: 600;
}

.sidebar .nav-sub-link i {
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.sidebar .nav-sub-link.active i { opacity: 1; }

/* Alt menü içinde ikinci seviye açılır grup (ör. Ürün Eklentileri) */
.sidebar .nav-sub-link.has-sub { user-select: none; cursor: pointer; }
.sidebar .nav-sub-link.has-sub .sub-chevron {
    font-size: 0.55rem;
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.4;
}
.sidebar .nav-sub-link.has-sub[aria-expanded="true"] .sub-chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}
/* İkinci seviye linkler diğer alt-linklerle birebir aynı stilde; yalnızca girinti daha derin */
.sidebar .nav-sub-link.nav-sub-nested { padding-left: 66px; }

/* ===== MAIN CONTENT ===== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TOPBAR ===== */
.topbar {
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 900;
    gap: 16px;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.92);
}

.topbar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    letter-spacing: -0.3px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== CONTENT AREA ===== */
.content-area {
    padding: 28px;
    flex: 1;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59,130,246,0.04), rgba(139,92,246,0.04));
    transform: translate(30%, -30%);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow); }

.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.card-body { padding: 20px; }

/* ===== TABLES ===== */
.table { font-size: 0.8125rem; color: var(--text-primary); margin-bottom: 0; }

.table thead th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}

.table tbody tr { transition: var(--transition); }
.table-hover tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== BUTTONS ===== */
.btn {
    font-weight: 500;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: 0;
    padding: 0.425rem 1rem;
}

.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.75rem; border-radius: 6px; }
.btn-lg { padding: 0.6rem 1.5rem; font-size: 0.95rem; }

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(59,130,246,0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(59,130,246,0.25);
    transform: translateY(-1px);
}

.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-1px); }

.btn-success { background: var(--success); border-color: var(--success); }
.btn-success:hover { background: #059669; border-color: #059669; transform: translateY(-1px); }

.btn-outline-success { color: var(--success); border-color: var(--success); }
.btn-outline-success:hover { background: var(--success); border-color: var(--success); }

.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-outline-danger { color: var(--danger); border-color: var(--danger); }

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-outline-secondary:hover {
    background: #f8fafc;
    border-color: var(--border);
    color: var(--text-primary);
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    transition: var(--transition);
    padding: 0.5rem 0.875rem;
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-control-sm, .form-select-sm { font-size: 0.75rem; padding: 0.375rem 0.75rem; }

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.input-group-text {
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.badge-taslak { background: #64748b; }
.badge-gonderildi { background: var(--primary); }
.badge-onaylandi { background: var(--success); }
.badge-kargolandi { background: var(--accent); }
.badge-teslim { background: #06b6d4; }
.badge-iptal { background: var(--danger); }

/* ===== ALERTS ===== */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 14px 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(16,185,129,0.04));
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(59,130,246,0.04));
    color: #1e40af;
    border-left: 4px solid var(--primary);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(245,158,11,0.04));
    color: #92400e;
    border-left: 4px solid var(--warning);
}

/* ===== MODAL ===== */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
}

.modal-body { padding: 24px; }

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 16px 24px;
}

/* ===== CONTAINER VISUALIZER ===== */
.container-viz {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid var(--border-light);
}

.container-bar {
    height: 24px;
    border-radius: 6px;
    background: var(--border-light);
    overflow: hidden;
}

.container-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #06b6d4);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
}

.container-fill.warning { background: linear-gradient(90deg, var(--warning), #f97316); }
.container-fill.danger { background: linear-gradient(90deg, #f97316, var(--danger)); }

/* ===== DROPDOWN ===== */
.dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    font-size: 0.8125rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 450;
    transition: var(--transition);
}

.dropdown-item:hover { background: #f1f5f9; }

/* ===== NOTIFICATIONS ===== */
.notification-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 4px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .main-wrapper { margin-left: 0; }
    .content-area { padding: 16px; }
}

/* ===== PROGRESS BAR ===== */
.progress {
    border-radius: 6px;
    height: 6px;
    background: var(--border-light);
    overflow: hidden;
}

.progress-bar {
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== FORM CHECK ===== */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===== CODE ===== */
code {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ===== LOGIN PAGE ===== */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
}

.login-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.login-card h2 { color: #fff; font-weight: 700; }

.login-card .form-control {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.875rem;
}

.login-card .form-control::placeholder { color: rgba(255,255,255,0.3); }

.login-card .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.login-card label {
    color: rgba(255,255,255,0.6);
    font-size: 0.8125rem;
    font-weight: 500;
}

.login-card .btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    letter-spacing: 0.3px;
}

.login-card .btn-primary:hover {
    box-shadow: 0 8px 20px rgba(59,130,246,0.4);
    transform: translateY(-2px);
}

.login-card .input-group-text {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
}

.login-logo {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ANIMATION UTILITIES ===== */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== DATATABLE OVERRIDES ===== */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    border: 1px solid var(--border) !important;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

/* ===== PAGE HEADER ===== */
h5 {
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

/* ===== TOOLTIP ===== */
.tooltip-inner {
    border-radius: 6px;
    font-size: 0.75rem;
    padding: 6px 12px;
}

/* ── Sipariş Durum Renkleri ─────────────────────── */
:root {
    --status-pending: #3b82f6;
    --status-approved: #10b981;
    --status-preparing: #06b6d4;
    --status-shipped: #8b5cf6;
    --status-customs: #f59e0b;
    --status-delivered: #22c55e;
    --status-cancelled: #ef4444;
    --status-draft: #94a3b8;
}

.status-badge { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; display: inline-block; }
.status-pending { background: rgba(59,130,246,0.12); color: var(--status-pending); }
.status-approved { background: rgba(16,185,129,0.12); color: var(--status-approved); }
.status-preparing { background: rgba(6,182,212,0.12); color: var(--status-preparing); }
.status-shipped { background: rgba(139,92,246,0.12); color: var(--status-shipped); }
.status-customs { background: rgba(245,158,11,0.12); color: var(--status-customs); }
.status-delivered { background: rgba(34,197,94,0.12); color: var(--status-delivered); }
.status-cancelled { background: rgba(239,68,68,0.12); color: var(--status-cancelled); }
.status-draft { background: rgba(148,163,184,0.12); color: var(--status-draft); }

/* Notification type badges */
.notif-order { background: rgba(59,130,246,0.1); color: #3b82f6; }
.notif-campaign { background: rgba(236,72,153,0.1); color: #ec4899; }
.notif-stock { background: rgba(16,185,129,0.1); color: #10b981; }
.notif-system { background: rgba(107,114,128,0.1); color: #6b7280; }

/* Priority badges */
.priority-low { background: rgba(148,163,184,0.12); color: #64748b; }
.priority-normal { background: rgba(59,130,246,0.12); color: #3b82f6; }
.priority-high { background: rgba(245,158,11,0.12); color: #f59e0b; }
.priority-urgent { background: rgba(239,68,68,0.12); color: #ef4444; }

/* ── Mobile & Accessibility UX ──────────────────── */

/* Touch targets — minimum 44px on mobile */
@media (max-width: 768px) {
    .btn { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .btn-sm { min-height: 38px; min-width: 38px; }
    .btn-xs { min-height: 34px; min-width: 34px; }
    .form-check-input { width: 1.25em; height: 1.25em; }
    .form-select, .form-control { min-height: 44px; }
    .dropdown-item { padding: 10px 16px; }
    .nav-link { padding: 10px 16px !important; }
}

/* Sticky table headers */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f8f9fa;
    box-shadow: 0 1px 0 var(--border, #dee2e6);
}

/* Responsive card layout for tables on mobile */
@media (max-width: 576px) {
    .table-mobile-cards tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border-light, #e2e8f0);
        border-radius: 8px;
        padding: 12px;
        background: #fff;
    }
    .table-mobile-cards thead { display: none; }
    .table-mobile-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 4px 0;
        border: none;
    }
    .table-mobile-cards tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.78rem;
        color: var(--text-secondary, #64748b);
        margin-right: 12px;
        flex-shrink: 0;
    }
}

/* Better scrollbar for tables */
.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.table-responsive::-webkit-scrollbar-track { background: transparent; }

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary, #3b82f6);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Skip to main content (accessibility) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary, #3b82f6);
    color: #fff;
    padding: 8px 16px;
    z-index: 99999;
    font-size: 0.875rem;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }
