/* ============================================
   SportsLab SaaS - Modern CSS Tasarım Sistemi
   PHP 7.4 | Bootstrap 5 ile birlikte çalışır
   ============================================ */

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

/* ============================================
   CSS CUSTOM PROPERTIES (TEMA DEĞİŞKENLERİ)
   ============================================ */
:root {
    /* Ana Renkler — Kırmızı / Beyaz Tema */
    --primary: #DC2626;
    --primary-light: #EF4444;
    --primary-dark: #B91C1C;
    --primary-bg: rgba(220,38,38,0.08);
    --secondary: #991B1B;
    --secondary-light: #DC2626;

    /* Durum Renkleri */
    --success: #16A34A;
    --success-light: #22C55E;
    --success-bg: rgba(22,163,74,0.08);
    --danger: #E11D48;
    --danger-light: #F43F5E;
    --danger-bg: rgba(225,29,72,0.08);
    --warning: #D97706;
    --warning-light: #F59E0B;
    --warning-bg: rgba(217,119,6,0.08);
    --info: #0891B2;
    --info-light: #06B6D4;
    --info-bg: rgba(8,145,178,0.08);

    /* Nötr Renkler (Sıcak tonlar) */
    --slate-50: #FAFAF9;
    --slate-100: #F5F5F4;
    --slate-200: #E7E5E4;
    --slate-300: #D6D3D1;
    --slate-400: #A8A29E;
    --slate-500: #78716C;
    --slate-600: #57534E;
    --slate-700: #44403C;
    --slate-800: #292524;
    --slate-900: #1C1917;
    --slate-950: #0C0A09;

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;
    --bg-body: #F5F5F4;
    --bg-sidebar: #1C1917;
    --bg-card: #FFFFFF;
    --text-primary: var(--slate-800);
    --text-secondary: var(--slate-500);
    --text-muted: var(--slate-400);
    --border-color: var(--slate-200);

    /* Tipografi */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-base: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.125rem;
    --font-size-2xl: 1.25rem;
    --font-size-3xl: 1.5rem;
    --font-size-4xl: 2rem;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --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);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

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

    /* Geçişler */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============================================
   LAYOUT - SIDEBAR + CONTENT
   ============================================ */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--slate-700); border-radius: 2px; }

.sidebar-brand {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-height: var(--topbar-height);
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    object-fit: cover;
}

.sidebar-brand h2 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
}

.sidebar-brand small {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--slate-400);
    font-weight: 400;
}

/* Sidebar Menu */
.sidebar-menu {
    flex: 1;
    padding: 12px 0;
}

.sidebar-menu-title {
    padding: 16px 24px 8px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-500);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item {
    margin: 2px 8px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--slate-400);
    border-radius: var(--radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
}

.sidebar-nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.sidebar-nav-link.active {
    color: #fff;
    background: var(--primary);
}

.sidebar-nav-link i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-link .badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    background: var(--danger);
    color: #fff;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

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

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: var(--font-size-xs);
    color: var(--slate-500);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
}

/* TOPBAR */
.topbar {
    height: var(--topbar-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.topbar-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.breadcrumb-nav {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.breadcrumb-nav a { color: var(--text-secondary); }
.breadcrumb-nav a:hover { color: var(--primary); }
.breadcrumb-nav span { color: var(--text-muted); margin: 0 6px; }

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
}

.sidebar-toggle:hover { background: var(--slate-100); }

/* PAGE CONTENT */
.page-content,
.content-area {
    flex: 1;
    padding: 28px 32px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
}

/* Form sayfalarında kartları ortala */
.content-area > .card {
    margin-left: auto;
    margin-right: auto;
}

/* Form kartları - genişlik kontrolü */
.content-area > .card[style*="max-width"] {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3, .card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.card-body { padding: 20px; }
.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--slate-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Stat Cards */
.stat-card {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.primary { background: var(--primary-bg); color: var(--primary); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.info { background: var(--info-bg); color: var(--info); }

.stat-info { flex: 1; }
.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.stat-change {
    font-size: var(--font-size-xs);
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.stat-change.up { background: var(--success-bg); color: var(--success); }
.stat-change.down { background: var(--danger-bg); color: var(--danger); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: var(--font-size-sm);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,0.3); }

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

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--slate-100); color: var(--text-primary); }

.btn-sm { padding: 5px 10px; font-size: var(--font-size-xs); }
.btn-lg { padding: 12px 24px; font-size: var(--font-size-lg); }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }

/* ============================================
   TABLES
   ============================================ */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: var(--slate-50);
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-align: left;
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-size-sm);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--slate-50);
}

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

/* ============================================
   FORMS
   ============================================ */
.form-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}

.form-control, .form-select {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: var(--transition);
    width: 100%;
    display: block;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

/* Form section titles */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 16px !important;
    border-bottom: 2px solid var(--primary-bg);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

/* Bootstrap row/col form düzeni */
.row { display: flex; flex-wrap: wrap; }
.row.g-3 { margin: 0 -8px; }
.row.g-3 > [class*="col-"] { padding: 0 8px; margin-bottom: 16px; }

.col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }

/* Form group spacing */
.form-group { margin-bottom: 16px; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }

/* D-flex utilities */
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }

/* Form select arrow */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23636e72' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 36px;
    cursor: pointer;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Form check / switch iyileştirme */
.form-check { padding: 6px 0 6px 28px; }
.form-check-input { margin-top: 2px; }
.form-check-label { font-size: var(--font-size-sm); cursor: pointer; }

/* File input */
input[type="file"].form-control {
    padding: 8px 14px;
    cursor: pointer;
}

/* Form switches */
.form-switch .form-check-input {
    width: 42px;
    height: 22px;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   BADGES
   ============================================ */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge-active { background: var(--success-bg); color: var(--success); }
.badge-inactive { background: var(--danger-bg); color: var(--danger); }
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }

/* ============================================
   ALERTS / TOAST
   ============================================ */
.alert-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
    background: var(--bg-card);
    border-left: 4px solid;
}

.alert-toast.success { border-color: var(--success); }
.alert-toast.error { border-color: var(--danger); }
.alert-toast.warning { border-color: var(--warning); }
.alert-toast.info { border-color: var(--info); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   AUTH PAGES (LOGIN)
   ============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1C1917 0%, #27141a 50%, #7F1D1D 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220,38,38,0.15), transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(220,38,38,0.1), transparent 70%);
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.auth-logo img {
    max-height: 56px;
    object-fit: contain;
}

.auth-logo h1 {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 12px;
}

.auth-logo p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: 4px;
}

.auth-tabs {
    display: flex;
    border-radius: var(--radius);
    background: var(--slate-100);
    padding: 3px;
    margin-bottom: 24px;
    gap: 3px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    text-decoration: none;
}

.auth-tab:hover { color: var(--text-primary); }
.auth-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.auth-form .form-group { margin-bottom: 18px; }

.auth-form .form-control {
    padding: 12px 16px;
    font-size: var(--font-size-base);
}

.auth-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   RESPONSIVE — TABLET (991px)
   ============================================ */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .content-area,
    .page-content {
        padding: 24px 20px;
    }

    /* Tablette form kartlarını tam genişliğe aç */
    .content-area > .card[style*="max-width"] {
        max-width: 100% !important;
    }
}

/* ============================================
   RESPONSIVE — MOBİL (768px)
   ============================================ */
@media (max-width: 768px) {
    .content-area,
    .page-content {
        padding: 16px 12px;
    }

    .stat-card { flex-direction: column; text-align: center; }
    .stat-icon { margin: 0 auto; }
    .auth-card { padding: 28px 20px; }
    .topbar { padding: 0 12px; }
    .topbar-title { font-size: var(--font-size-lg); }

    /* Mobilde tüm kartlar full genişlik */
    .content-area > .card,
    .content-area > .card[style*="max-width"] {
        max-width: 100% !important;
    }

    /* Mobil tablo scroll */
    .table-responsive { margin: 0 -12px; }
    .data-table thead th,
    .data-table tbody td { padding: 10px 12px; }

    /* Mobil form düzeni */
    .d-flex.flex-wrap.gap-3 { gap: 8px !important; }
    .d-flex.flex-wrap.gap-3 > * { min-width: 100% !important; flex: 1 1 100% !important; }

    /* Filtre kartları mobilde tek sütun */
    .card-body .d-flex.flex-wrap { flex-direction: column; }
    .card-body .d-flex.flex-wrap > div[style*="min-width"] { min-width: 100% !important; }

    /* Kart header */
    .card-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .card-body { padding: 16px; }

    /* Butonlar mobilde */
    .d-flex.gap-3 > .btn,
    .d-flex.gap-2 > .btn { flex: 1; justify-content: center; }

    /* Nav tabs mobil */
    .nav-tabs-modern { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; justify-content: flex-start !important; gap: 4px !important; padding: 6px !important; }
    .nav-tabs-modern .nav-tab-item { flex: 0 0 auto; min-width: auto; }
    .nav-tabs-modern .nav-tab-link { padding: 8px 14px !important; font-size: var(--font-size-xs) !important; gap: 4px !important; }
    .nav-tabs-modern .nav-tab-link .tab-label { display: none; }
    .nav-tabs-modern .nav-tab-link i { font-size: 1rem; }
    .nav-tabs-modern .nav-tab-link .badge { display: none; }

    /* Mobilde col-md sütunları tam genişlik */
    .col-md-3, .col-md-4, .col-md-6, .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   MODERN TAB NAVIGATION
   ============================================ */
.nav-tabs-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.nav-tab-item {
    flex: 1 1 0;
    min-width: 0;
}

.nav-tab-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.nav-tab-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
}

.nav-tab-link:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-tab-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(0);
}

.nav-tab-link.active:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    color: #fff;
}

.nav-tab-link .badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
    margin-left: 2px;
}

.nav-tab-link .badge-count {
    background: rgba(225, 29, 72, 0.15);
    color: var(--danger);
}

.nav-tab-link.active .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.tab-label {
    font-size: var(--font-size-sm);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-primary-subtle { background: var(--primary-bg) !important; }
.bg-success-subtle { background: var(--success-bg) !important; }
.bg-danger-subtle { background: var(--danger-bg) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.fw-600 { font-weight: 600 !important; }
.fw-700 { font-weight: 700 !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    color: var(--slate-300);
    margin-bottom: 16px;
}

.empty-state h4 { color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { font-size: var(--font-size-sm); }

/* Loading */
.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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