:root {
    --primary-color: #4f46e5;
    --secondary-color: #6b7280;
    --background-color: #f3f4f6;
    --card-background: #ffffff;
    --text-color: #111827;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --border-color: #e5e7eb;
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.navbar.bg-dark {
    background-color: var(--card-background) !important;
    box-shadow: 0 4px 6px -1px var(--shadow-color);
}
.navbar .navbar-brand, .navbar .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
}
.navbar .nav-link.active, .navbar .nav-link:hover {
    color: var(--primary-color) !important;
}
.card {
    background-color: var(--card-background);
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 var(--shadow-color), 0 1px 2px 0 var(--shadow-color);
}
.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
}
.card-body { padding: 1.5rem; }
.card-body.p-0 { padding: 0 !important; }

.table { margin-bottom: 0; }
.table thead th {
    background-color: #f0f2f5;
    border-bottom-width: 1px;
    font-weight: 600;
}
/* Satır Renklendirmeleri */
.weekend-row td {
    background-color: #ffcccc !important; /* Kırmızı */
}
.holiday-row td {
    background-color: #ffcccc !important; /* Kırmızı */
}
.weekend-row td, .holiday-row td, .personal-leave-row td {
    font-weight: bold !important; /* Koyu yazı */
}
.personal-leave-row td {
    background-color: #e0f2f7 !important; /* Açık Mavi */
}

/* İzinli checkbox'ı işaretlendiğinde daha belirgin mavi renk */
.form-check-input.izin-check:checked {
    background-color: #0d6efd; /* Bootstrap primary blue */
    border-color: #0d6efd;
}

/* ============================================
   MOBIL RESPONSIVE DÜZENLEMELER
   ============================================ */

/* Genel Mobil Ayarlar */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }

    /* Navbar Mobil */
    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-nav {
        text-align: center;
        padding-top: 10px;
    }

    .navbar-nav .nav-item {
        padding: 5px 0;
    }

    /* Kartlar Mobil */
    .card {
        margin-bottom: 15px;
        border-radius: 0.5rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    /* Dashboard Ay Kartları - Mobilde 1 kolon */
    .dashboard-month-card {
        margin-bottom: 10px;
    }

    .dashboard-month-card .card-title {
        font-size: 1rem;
    }

    .dashboard-month-card .card-text {
        font-size: 1.3rem !important;
    }

    .dashboard-month-card .badge {
        font-size: 0.7rem;
    }

    .dashboard-month-card .btn-sm {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    /* Form Seçim Kutuları */
    .form-select, .form-control {
        font-size: 0.9rem;
    }

    /* Butonlar */
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    /* Tablolar - Yatay Scroll */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.75rem;
        min-width: 800px; /* Minimum genişlik - scroll olacak */
    }

    .table th, .table td {
        padding: 0.4rem;
        white-space: nowrap;
    }

    .table input.form-control {
        font-size: 0.7rem;
        padding: 0.25rem;
        min-width: 60px;
    }

    /* Veri Giriş Tablosu Özel */
    #data-table thead th {
        position: sticky;
        top: 0;
        z-index: 10;
        font-size: 0.7rem;
        padding: 0.5rem 0.3rem;
    }

    #data-table tbody td {
        font-size: 0.75rem;
    }

    /* Aylık Toplam Tablosu Alt Kısım */
    #data-table tfoot td {
        font-size: 0.7rem;
        padding: 0.5rem 0.3rem;
    }

    /* PDF İndir Butonu */
    .btn-danger i {
        font-size: 0.8rem;
    }

    /* Form Switch (Toggle) */
    .form-check-input {
        width: 2rem;
        height: 1rem;
    }

    /* Dashboard'daki Form Düzeni */
    .row.g-3 {
        gap: 0.5rem !important;
    }

    /* Toplam Kutusu */
    .bg-dark.text-white.rounded {
        padding: 1rem !important;
    }

    .bg-dark.text-white.rounded h5 {
        font-size: 1rem;
    }

    .bg-dark.text-white.rounded .fs-3 {
        font-size: 1.5rem !important;
    }

    /* Durum Göstergeleri */
    .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 5px;
    }

    .form-check-label {
        font-size: 0.8rem;
    }
}

/* Çok Küçük Ekranlar (Telefonlar) */
@media (max-width: 576px) {
    h1 {
        font-size: 1.3rem !important;
    }

    /* Dashboard Kartları - Tam genişlik */
    .row-cols-1 > * {
        width: 100% !important;
    }

    /* Form Alanları Dikey Dizilim */
    .row.g-3 > div {
        margin-bottom: 10px;
    }

    /* Buton tam genişlik */
    .btn:not(.btn-sm) {
        width: 100%;
    }

    /* Tablo daha da kompakt */
    .table {
        font-size: 0.7rem;
    }

    .table input.form-control {
        font-size: 0.65rem;
        padding: 0.2rem;
    }

    /* Navbar brand küçült */
    .navbar-brand {
        font-size: 1rem;
    }

    /* Küçük yazılar */
    small, .small {
        font-size: 0.7rem;
    }
}

/* Tablet Yatay (Landscape) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .dashboard-month-card .card-title {
        font-size: 0.95rem;
    }

    .dashboard-month-card .card-text {
        font-size: 1.2rem !important;
    }
}

/* Geniş Ekranlar için maksimum genişlik */
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Mobil Scroll İpucu */
.mobile-scroll-hint {
    display: none;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 8px 12px;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .mobile-scroll-hint {
        display: block;
    }
}

