:root {
    --bg-dark: #0a0e17;
    --bg-card: #121824;
    --bg-card-hover: #1a2232;
    --accent-blue: #0d6efd;
    --accent-gold: #d4af37;
    --border-color: rgba(255, 255, 255, 0.07);
    --text-main: #e2e8f0;
    --text-muted: #8492a6;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Stilleri */
.navbar-custom {
    background: rgba(18, 24, 36, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.brand-badge {
    border-left: 3px solid var(--accent-gold);
    padding-left: 12px;
}

.text-gold {
    color: var(--accent-gold) !important;
}

/* Kartlar ve Paneller */
.card-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.card-custom:hover {
    border-color: rgba(13, 110, 253, 0.3);
}

/* Hero Header */
.hero-banner {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.08) 0%, rgba(10, 14, 23, 0) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
}

/* Header Kaymama Ayarı & Sayfa Düzeni */
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    /* Sayfa boyu değişse de header kaymasını engeller */
}

/* Page Loader - Kilitlenmeyi Önleyen Yapı */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0e17;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    /* Sayfaya tıklamayı kitlemez */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Yukarı Çık Butonu */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #000;
    border: none;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    transform: translateY(-50px);
    background: #fff;
}

/* ==========================================================================
   LSPD YÜKSEK KONTRAST RENK TEMASI VE OKUNABİLİRLİK FİXİ
   ========================================================================== */

/* Alt Açıklamalar ve Soluk Yazılar İçin Okunabilir Gri */
.text-muted {
    color: #9ca3af !important;
    /* Yüksek kontrastlı açık gri */
}

/* Sağ Üst Toplam Personel Rozeti */
.badge-gold-custom {
    background-color: #d97706 !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid #f59e0b !important;
}

/* Rütbe Rozetleri (Mavi) */
.badge-rank {
    background-color: #1e40af !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid #3b82f6 !important;
    padding: 6px 12px !important;
}

/* Admin Rozeti (Kırmızı) */
.badge-admin {
    background-color: #991b1b !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 1px solid #ef4444 !important;
}

/* Aktif Durum Rozeti (Yeşil) */
.badge-status-active {
    background-color: #065f46 !important;
    color: #34d399 !important;
    font-weight: 600;
    border: 1px solid #10b981 !important;
}

/* İzinli Durum Rozeti (Sarı/Turuncu) */
.badge-status-leave {
    background-color: #92400e !important;
    color: #fbbf24 !important;
    font-weight: 600;
    border: 1px solid #f59e0b !important;
}

/* Açığa Alındı Durum Rozeti (Kırmızı) */
.badge-status-suspended {
    background-color: #7f1d1d !important;
    color: #fca5a5 !important;
    font-weight: 600;
    border: 1px solid #f87171 !important;
}

/* Tablo Başlık ve Satır Yazı Netliği */
.table-custom th {
    color: #f3f4f6 !important;
    background-color: #111827 !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.table-custom td {
    color: #e5e7eb !important;
    vertical-align: middle;
}

/* Tıklamalarda metin seçilmeyi ve imlecin yazı seçme ikonuna dönüşmesini engelle */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Sadece form alanlarında yazı yazılabilir imleç aktif kalsın */
input,
textarea,
select {
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

/* Sol Üst Logo ve Marka Boyut Küçültmesi */
/* Logo Boyutunu Kesin Sabitleme */
.navbar-brand img.brand-logo,
.navbar-custom .navbar-brand img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
}

.brand-badge span {
    font-size: 0.95rem !important;
    /* "LSPD PROJECT" yazısı küçültüldü */
    line-height: 1.1;
}

.brand-badge small {
    font-size: 0.65rem !important;
    /* Altındaki sunucu yazısı küçültüldü */
}

.announcement-content img,
.announcement-card img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #1f2833;
}

/* ==========================================================
   KÜRESEL RESPONSIVE (MOBİL & TABLET) DÜZENLEMELERİ
   ================================================---------- */

/* 1. Görsellerin ve Medyaların Taşmasını Önle */
img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

/* 2. Tabloların Mobilde Ekranı Kırmasını Önler (Yatay Kaydırma Ekler) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Eğer tabloyu doğrudan kullandıysan etiket bağımsız kaydırma sağlar */
table {
    max-width: 100%;
    white-space: nowrap;
    /* Metinlerin alt alta patlamasını engeller, kaydırılabilir yapar */
}

/* 3. Küçük Ekranlar (Telefonlar) İçin Boşluk ve Padding Ayarları */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        /* Mobilde yazı boyutunu okunabilir oranlı yapar */
    }

    .container,
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Kartların iç boşluklarını mobilde daraltarak ekrandan taşmasını engeller */
    .card-body {
        padding: 1rem !important;
    }

    /* Butonları mobilde tam genişlik (kolay tıklanması için) yapabilirsin */
    .btn-mobile-block {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* 4. Form Elemanları ve Inputların Mobilde Taşması */
input,
select,
textarea {
    max-width: 100%;
}