/* =========================================
   1. FONTS & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --aviation-blue: #0f172a;
    --aviation-accent: #0284c7;
    --aviation-light: #f1f5f9;
    --aviation-gray: #64748b;
    --surface-white: #ffffff;
    --border-color: #e2e8f0;
    /* Navbar yükseklikleri */
    --navbar-height-desktop: 70px;
    --navbar-height-tablet: 65px;
    --navbar-height-mobile: 60px;
}

/* =========================================
   2. GLOBAL SETTINGS
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--aviation-light);
    color: #334155;
    font-size: 0.9rem;
    padding-top: calc(var(--navbar-height-desktop) + 20px);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   3. NAVBAR & LOGO
   ========================================= */
.navbar-aviation {
    background-color: var(--surface-white);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    height: var(--navbar-height-desktop);
    display: flex;
    align-items: center;
}

/* Logo Alanı */
.navbar-brand {
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 60px; /* 100px yerine navbar'a uygun */
    width: auto;
    max-width: 200px; /* Genişliği artırdık */
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
}

/* Linkler */
.nav-link {
    font-weight: 600;
    color: var(--aviation-gray) !important;
    transition: all 0.2s;
    padding: 0.5rem 0.875rem !important;
    font-size: 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--aviation-accent) !important;
        background-color: #f0f9ff;
    }

    /* Dropdown toggle ok işareti */
    .nav-link.dropdown-toggle::after {
        margin-left: 0.5rem;
        vertical-align: middle;
        transition: transform 0.3s ease;
    }

/* =========================================
   4. DROPDOWN MENU STYLING
   ========================================= */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 220px;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-weight: 500;
    color: #334155;
    transition: all 0.2s;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f0f9ff;
        color: var(--aviation-accent);
    }

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* =========================================
   5. PAGE HEADERS & BUTTONS
   ========================================= */
.page-header {
    background-color: transparent;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--aviation-blue);
    margin: 0;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 0.95rem;
    color: var(--aviation-gray);
    margin-top: 5px;
    margin-bottom: 0;
}

/* Buton Düzenlemeleri */
.btn-primary-aviation {
    background-color: var(--aviation-blue);
    border-color: var(--aviation-blue);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

    .btn-primary-aviation:hover {
        background-color: #1e293b;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
        transform: translateY(-1px);
    }

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto !important;
}

/* =========================================
   6. CARDS, TABLES & FORMS
   ========================================= */
.card-aviation {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    background: white;
    -webkit-overflow-scrolling: touch;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

.form-control:focus {
    border-color: var(--aviation-accent);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

/* =========================================
   7. HAMBURGER MENU STYLING
   ========================================= */
.navbar-toggler {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: none !important;
    background-color: #f1f5f9 !important;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
        outline: none;
    }

    .navbar-toggler:hover {
        background-color: #e2e8f0 !important;
    }

/* =========================================
   8. TOAST & UTILITIES
   ========================================= */
.toast-container {
    z-index: 1055 !important;
}

/* Custom scrollbar */
.navbar-collapse {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

    .navbar-collapse::-webkit-scrollbar {
        width: 5px;
    }

    .navbar-collapse::-webkit-scrollbar-track {
        background: transparent;
    }

    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.15);
        border-radius: 3px;
    }

/* Login page special styling */
.login-bg {
    padding-top: 0 !important;
}

/* =========================================
   20. RESPONSIVE TABLE SYSTEM (YENİ)
   ========================================= */

/* Tablo container scroll indicator */
.table-responsive {
    position: relative;
}

    /* Mobilde scroll hint */
    .table-responsive::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .table-responsive.show-scroll-hint::after {
        opacity: 1;
    }

/* Tablo temel stilleri */
.table {
    margin-bottom: 0;
    width: 100%;
}

    .table thead th {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        padding: 1rem 0.75rem;
        border-bottom: 2px solid var(--border-color);
        background-color: #f8fafc;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .table tbody td {
        padding: 0.875rem 0.75rem;
        vertical-align: middle;
        border-bottom: 1px solid var(--border-color);
    }

    /* Action butonları için sabit genişlik */
    .table .actions-cell {
        white-space: nowrap;
        width: 1%;
    }

/* =========================================
   21. MOBILE CARD VIEW (Alternatif Görünüm)
   ========================================= */

/* Mobilde kart görünümü için class */
.mobile-card-view {
    display: none;
}

/* =========================================
   22. RESPONSIVE STAT CARDS
   ========================================= */
.stat-card {
    border: none;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.stat-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 2.5rem;
    opacity: 0.15;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   23. RESPONSIVE MODALS
   ========================================= */
.modal-dialog {
    margin: 1.75rem auto; /* ORTADA HİZALA */
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-radius: 16px 16px 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-radius: 0 0 16px 16px;
}

/* =========================================
   24. RESPONSIVE FORMS
   ========================================= */
.form-control,
.form-select {
    padding: 0.625rem 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: all 0.2s;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--aviation-accent);
        box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
    }

.form-label,
label.fw-bold.small {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--aviation-gray);
    margin-bottom: 0.375rem;
}

/* =========================================
   25. RESPONSIVE BADGES
   ========================================= */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

/* =========================================
   9. RESPONSIVE - TABLET (992px - 1199px)
   ========================================= */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-link {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.75rem;
    }

    .nav-logo {
        height: 42px;
        max-width: 140px;
    }

    .navbar-brand {
        margin-right: 1rem;
    }

    .dropdown-menu {
        min-width: 200px;
    }

    .dropdown-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }

    /* Tablo küçültme */
    .table thead th {
        font-size: 0.7rem;
        padding: 0.75rem 0.5rem;
    }

    .table tbody td {
        font-size: 0.85rem;
        padding: 0.625rem 0.5rem;
    }
}

/* =========================================
   10. RESPONSIVE - LARGE DESKTOP (1200px - 1399px)
   ========================================= */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .nav-link {
        padding: 0.4rem 0.7rem !important;
        font-size: 0.8rem;
    }

    .nav-logo {
        height: 50px;
        max-width: 160px;
    }
}

/* =========================================
   11. RESPONSIVE - EXTRA LARGE DESKTOP (1400px+)
   ========================================= */
@media (min-width: 1400px) {
    .nav-link {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.9rem;
    }

    .nav-logo {
        height: 55px;
        max-width: 180px;
    }
}

/* =========================================
   12. RESPONSIVE - MOBİL & TABLET (< 992px)
   ========================================= */
@media (max-width: 991.98px) {
    body {
        padding-top: calc(var(--navbar-height-mobile) + 15px);
    }

    /* Navbar mobil ayarları */
    .navbar-aviation {
        height: var(--navbar-height-mobile);
        padding: 0.5rem 1rem;
    }

    /* Mobilde Logo */
    .nav-logo {
        height: 40px;
        max-width: 130px;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        max-height: calc(100vh - var(--navbar-height-mobile) - 20px);
        overflow-y: auto;
        z-index: 1000;
        border-top: 1px solid var(--border-color);
    }

    /* Nav listesi */
    .navbar-nav {
        flex-direction: column !important;
        gap: 0.25rem !important;
        margin: 0 !important;
    }

        .navbar-nav .nav-item {
            width: 100%;
        }

        .navbar-nav .nav-link {
            padding: 0.75rem 1rem !important;
            font-size: 0.95rem;
            display: flex !important;
            align-items: center;
            justify-content: space-between;
            border-radius: 10px;
            min-height: 48px;
        }

            .navbar-nav .nav-link:hover,
            .navbar-nav .nav-link:focus {
                background-color: #f0f9ff;
            }

        /* Dropdown toggle mobilde */
        .navbar-nav .dropdown.show .dropdown-toggle::after {
            transform: rotate(180deg);
        }

        /* Dropdown menü mobilde */
        .navbar-nav .dropdown-menu {
            position: static !important;
            float: none;
            width: 100%;
            margin: 0.25rem 0 0.5rem 0 !important;
            padding: 0.5rem;
            background-color: #f8fafc;
            border: none;
            border-radius: 10px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
            display: none;
        }

            .navbar-nav .dropdown-menu.show {
                display: block;
            }

        .navbar-nav .dropdown-item {
            padding: 0.625rem 1rem;
            margin: 0.125rem 0;
            font-size: 0.9rem;
            min-height: 44px;
            display: flex;
            align-items: center;
        }

        /* User profile mobilde */
        .navbar-nav.ms-auto {
            margin-top: 1rem !important;
            padding-top: 1rem;
            border-top: 1px solid var(--border-color);
        }

    /* Page header mobilde */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-action {
        width: 100% !important;
        justify-content: center;
    }

    .page-title {
        font-size: 1.5rem;
    }

    /* Toast mobilde */
    .toast-container {
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem !important;
    }

    .toast {
        width: 100%;
    }

    /* === TABLO RESPONSİVE === */
    .table-responsive {
        margin: 0 -0.75rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .table thead th {
        font-size: 0.65rem;
        padding: 0.75rem 0.5rem;
        position: sticky;
        top: 0;
        background: #f8fafc;
    }

    .table tbody td {
        font-size: 0.8rem;
        padding: 0.625rem 0.5rem;
    }

        /* İlk sütunu sabit tut (sticky) */
        .table thead th:first-child,
        .table tbody td:first-child {
            position: sticky;
            left: 0;
            background: white;
            z-index: 5;
            box-shadow: 2px 0 5px rgba(0,0,0,0.05);
        }

    .table thead th:first-child {
        background: #f8fafc;
        z-index: 15;
    }

    /* Stat kartları mobilde */
    .stat-card .card-body {
        padding: 1rem !important;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
        right: 10px;
        top: 10px;
    }

    /* Modal mobilde */
    .modal-dialog {
        margin: 0.5rem auto; /* ORTADA HİZALA */
        max-width: calc(100% - 1rem);
    }

    .modal-lg {
        max-width: calc(100% - 1rem);
    }

    /* Tab'lar mobilde */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .nav-tabs .nav-link {
            white-space: nowrap;
            padding: 0.5rem 0.75rem;
            font-size: 0.8rem;
        }

    /* Form elemanları mobilde */
    .form-control,
    .form-select {
        font-size: 16px; /* iOS zoom engellemek için */
        padding: 0.75rem;
    }

    /* Row gap ayarı */
    .row.g-3 > [class*="col-"],
    .row.g-4 > [class*="col-"] {
        margin-bottom: 0.75rem;
    }
}

/* =========================================
   13. RESPONSIVE - KÜÇÜK MOBİL (< 576px)
   ========================================= */
@media (max-width: 575.98px) {
    body {
        padding-top: calc(var(--navbar-height-mobile) + 10px);
    }

    .navbar-aviation {
        padding: 0.4rem 0.75rem;
    }

    .nav-logo {
        height: 35px;
        max-width: 120px;
    }

    .navbar-collapse {
        padding: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.875rem;
    }

    .navbar-nav .dropdown-item {
        padding: 0.5rem 0.875rem;
        font-size: 0.85rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }

    .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Stat kartları küçük mobilde */
    .stat-card .card-body {
        padding: 0.875rem !important;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-icon {
        font-size: 1.75rem;
    }

    /* Tablo küçük mobilde */
    .table thead th {
        font-size: 0.6rem;
        padding: 0.5rem 0.375rem;
    }

    .table tbody td {
        font-size: 0.75rem;
        padding: 0.5rem 0.375rem;
    }

    /* Butonları daha küçük yap */
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .btn-primary-aviation {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Badge'ler küçük mobilde */
    .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    /* Kartlardaki grid 2'li yerine 1'li */
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Quick Actions */
    .btn.p-3 {
        padding: 0.75rem !important;
    }

        .btn.p-3 .fw-bold {
            font-size: 0.85rem;
        }

        .btn.p-3 .small {
            font-size: 0.7rem;
        }
}

/* =========================================
   14. RESPONSIVE - ÇOK KÜÇÜK MOBİL (< 360px)
   ========================================= */
@media (max-width: 359.98px) {
    body {
        padding-top: calc(var(--navbar-height-mobile) + 8px);
        font-size: 0.85rem;
    }

    .navbar-aviation {
        padding: 0.3rem 0.5rem;
        height: 55px;
    }

    .nav-logo {
        height: 30px;
        max-width: 100px;
    }

    .navbar-collapse {
        padding: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem;
    }

    .navbar-nav .dropdown-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .btn-primary-aviation {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Stat kartları tek sütun */
    .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .stat-card .card-body {
        padding: 0.75rem !important;
    }

    .stat-value {
        font-size: 1.1rem;
    }
}

/* =========================================
   15. LANDSCAPE ORIENTATION (Yatay Mod)
   ========================================= */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding-top: calc(50px + 10px);
    }

    .navbar-aviation {
        height: 50px;
    }

    .nav-logo {
        height: 30px;
    }

    .navbar-collapse {
        max-height: calc(100vh - 60px);
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        min-height: 40px;
    }

    .navbar-nav .dropdown-item {
        min-height: 36px;
    }
}

/* =========================================
   16. TABLET PORTRAIT (768px - 991px)
   ========================================= */
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        padding-top: calc(var(--navbar-height-tablet) + 15px);
    }

    .navbar-aviation {
        height: var(--navbar-height-tablet);
    }

    .nav-logo {
        height: 45px;
        max-width: 150px;
    }

    .navbar-collapse {
        padding: 1.25rem;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
        padding: 0.875rem 1.25rem !important;
    }

    .navbar-nav .dropdown-item {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
    }

    .page-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .btn-action {
        width: auto !important;
    }

    .page-title {
        font-size: 1.6rem;
    }

    /* Tablolar tablet'te */
    .table thead th {
        font-size: 0.7rem;
    }

    .table tbody td {
        font-size: 0.85rem;
    }

    /* Stat kartları tablet'te 2x2 */
    .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* =========================================
   17. PRINT STYLES
   ========================================= */
@media print {
    body {
        padding-top: 0;
        background: white;
    }

    .navbar-aviation,
    .btn-action,
    .toast-container,
    .navbar-toggler {
        display: none !important;
    }

    .card-aviation {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .page-header {
        border-bottom: 2px solid #000;
    }

    .table {
        font-size: 0.8rem;
    }

        .table thead th {
            background: #f0f0f0 !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }
}

/* =========================================
   18. REDUCED MOTION (Azaltılmış Hareket)
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =========================================
   19. TOUCH DEVICE OPTIMIZATIONS
   ========================================= */
@media (hover: none) and (pointer: coarse) {
    /* Daha büyük dokunma alanları */
    .nav-link,
    .dropdown-item {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Hover efektlerini kaldır */
    .btn-primary-aviation:hover {
        transform: none;
    }

    .stat-card:hover {
        transform: none;
    }

    /* Active state ekle */
    .btn-primary-aviation:active {
        background-color: #1e293b;
        transform: scale(0.98);
    }

    .nav-link:active,
    .dropdown-item:active {
        background-color: #f0f9ff;
    }

    /* Tablo satırları için aktif durumu */
    .table tbody tr:active {
        background-color: #f0f9ff;
    }
}

/* =========================================
   26. UTILITY CLASSES (Yardımcı Sınıflar)
   ========================================= */

/* Mobilde gizle */
.hide-mobile {
    display: block;
}

/* Sadece mobilde göster */
.show-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

/* Metin kısaltma */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scroll snap için container */
.scroll-snap-x {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

    .scroll-snap-x > * {
        scroll-snap-align: start;
    }

/* =========================================
   27. MOBILE-FRIENDLY TABLE ALTERNATIVES
   ========================================= */

/* Data-label kullanarak mobilde tablo */
@media (max-width: 575.98px) {
    /* Opsiyonel: Tamamen kart görünümüne geç */
    .table-card-mobile thead {
        display: none;
    }

    .table-card-mobile tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 0.75rem;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .table-card-mobile tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f1f5f9;
    }

        .table-card-mobile tbody td:last-child {
            border-bottom: none;
        }

        .table-card-mobile tbody td::before {
            content: attr(data-label);
            font-weight: 600;
            font-size: 0.7rem;
            text-transform: uppercase;
            color: var(--aviation-gray);
            flex-shrink: 0;
            margin-right: 1rem;
        }
}

/* =========================================
   28. SWIPE INDICATORS
   ========================================= */
.swipe-hint {
    display: none;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--aviation-accent);
}

    .swipe-hint i {
        animation: swipe-animation 1.5s ease-in-out infinite;
    }

@keyframes swipe-animation {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

@media (max-width: 767.98px) {
    .swipe-hint {
        display: block;
    }
}

/* =========================================
   29. FLOATING ACTION BUTTON (FAB)
   ========================================= */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--aviation-blue);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.2s;
}

    .fab:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
    }

    .fab:active {
        transform: scale(0.95);
    }

@media (max-width: 767.98px) {
    .fab {
        display: flex;
    }

    /* FAB varken page-header'daki butonu gizle */
    .page-header .btn-action {
        display: none !important;
    }
}

/* =========================================
   30. LOADING STATES
   ========================================= */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* =========================================
   31. NOTIFICATION DROPDOWN MOBILE
   ========================================= */
@media (max-width: 575.98px) {
    #notifyList {
        width: calc(100vw - 2rem) !important;
        max-width: 320px;
        right: -0.5rem !important;
    }

        #notifyList .dropdown-item {
            padding: 0.75rem !important;
        }

        #notifyList .fw-bold.small {
            font-size: 0.8rem !important;
        }

        #notifyList .text-wrap {
            font-size: 0.7rem !important;
        }
}

/* =========================================
   32. TABLE HEADER FIX
   ========================================= */

/* Tablo başlıkları için kesin stil */
.table-dark,
.table thead.table-dark {
    background-color: #212529 !important;
    color: #ffffff !important;
}

    .table-dark th,
    .table thead.table-dark th {
        background-color: #212529 !important;
        color: #ffffff !important;
        border-color: #32383e !important;
    }

/* Print modunda da görünsün */
@media print {
    .table-dark,
    .table thead.table-dark,
    .table-dark th,
    .table thead.table-dark th {
        background-color: #212529 !important;
        color: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* Alternatif: Açık tema tablo başlığı */
.table thead.bg-light th {
    background-color: #f8fafc !important;
    color: #334155 !important;
    font-weight: 700;
}