/* ── OfisTakip — Özel Stiller ── */

/* ─── Sidebar Scrollbar Gizle ─── */
.navbar-vertical,
.navbar-vertical .container-fluid,
.navbar-vertical .navbar-collapse {
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}
.navbar-vertical::-webkit-scrollbar,
.navbar-vertical .container-fluid::-webkit-scrollbar,
.navbar-vertical .navbar-collapse::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
    width: 0;
    height: 0;
}

/* Sidebar active link */
.navbar-vertical .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-weight: 600;
}

/* DataTable hover */
.table-striped tbody tr:hover {
    background-color: rgba(32, 107, 196, 0.05);
}

/* Modal backdrop blur */
.modal-blur .modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Card shadow */
.card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Badge spacing in tables */
.table .badge {
    font-size: 0.75rem;
}

/* Page center alignment (login) */
.page-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive table adjustments */
.table-responsive {
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.table-responsive::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* ─── Tema Toggle İkonları ─── */
/* Karanlık moddayken Güneş görünsün (Aydınlığa geçmek için) */
[data-bs-theme="dark"] .theme-icon-light {
    display: inline-block !important;
}
[data-bs-theme="dark"] .theme-icon-dark {
    display: none !important;
}

/* Aydınlık moddayken Ay görünsün (Karanlığa geçmek için) */
[data-bs-theme="light"] .theme-icon-light,
:root:not([data-bs-theme="dark"]) .theme-icon-light {
    display: none !important;
}
[data-bs-theme="light"] .theme-icon-dark,
:root:not([data-bs-theme="dark"]) .theme-icon-dark {
    display: inline-block !important;
}

/* Tema toggle buton hover */
#btnThemeToggle {
    transition: opacity 0.2s ease;
}
#btnThemeToggle:hover {
    opacity: 0.7;
}

/* ─── Badge ve Metin Okunaklılık İyileştirmeleri ─── */
.badge {
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    padding: 0.4em 0.8em !important;
    font-size: 0.8rem !important;
}

/* Koyu Temada Başarı (Yeşil) Rozeti - Soft Stil */
[data-bs-theme="dark"] .bg-success {
    background-color: rgba(47, 179, 68, 0.15) !important;
    color: #4dfa6d !important; /* Daha parlak ve okunaklı yeşil */
    border: 1px solid rgba(47, 179, 68, 0.4);
}

/* Koyu Temada Hata (Kırmızı) Rozeti - Soft Stil */
[data-bs-theme="dark"] .bg-danger {
    background-color: rgba(214, 57, 57, 0.15) !important;
    color: #ff6b6b !important; /* Daha yumuşak ama okunaklı kırmızı */
    border: 1px solid rgba(214, 57, 57, 0.4);
}

/* ─── Premium Loader Modal (SweetAlert2 Custom) ─── */
.premium-loader-modal {
    border-radius: 16px !important;
    padding: 2rem !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

[data-bs-theme="dark"] .premium-loader-modal {
    background: rgba(29, 39, 59, 0.9) !important;
    color: #f4f7f6 !important;
}

[data-bs-theme="light"] .premium-loader-modal {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1d273b !important;
}

.swal2-loader {
    border-color: #206bc4 transparent #206bc4 transparent !important;
    border-width: 3px !important;
    width: 3.5em !important;
    height: 3.5em !important;
}

/* Tablo içindeki genel yazıların netliği */
.table td, .table th {
    vertical-align: middle;
}

/* ─── Beyanname Liste Stilleri ─── */
.status-box.status-na {
    background-color: rgba(145, 158, 171, 0.1);
    border: 1px dashed rgba(145, 158, 171, 0.3);
    cursor: not-allowed;
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

[data-bs-theme="dark"] .status-box.status-na {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.status-box.status-na::after {
    content: "Yok";
    font-size: 8px;
    color: rgba(145, 158, 171, 0.6);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ─── Mükellef Modal Tab Sabitleme ─── */
#mukellefModal .tab-pane {
    min-height: 380px;
}

#mukellefModal .modal-body {
    overflow-x: hidden;
}

/* ─── Checkbox Görünürlük ve Premium Stil ─── */
.form-check-input {
    cursor: pointer;
    border: 1.5px solid rgba(120, 130, 140, 0.5);
    background-color: transparent;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .form-check-input {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: #206bc4;
    border-color: #206bc4;
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #4299e1;
    border-color: #4299e1;
}

/* ─── Debug Terminal Stilleri ─── */
#gibDebugLog::-webkit-scrollbar {
    width: 6px;
}
#gibDebugLog::-webkit-scrollbar-track {
    background: transparent;
}
#gibDebugLog::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}
#gibDebugLog::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.text-orange { color: #f76707 !important; }

/* ─── Tüm Modallar: Çerçeve (Dark/Light Tema Uyumlu) ─── */
.modal-content {
    border: 2px solid rgba(32, 107, 196, 0.35) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(32, 107, 196, 0.1) !important;
}

[data-bs-theme="dark"] .modal-content {
    border-color: rgba(66, 153, 225, 0.45) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(66, 153, 225, 0.15) !important;
}

[data-bs-theme="light"] .modal-content,
:root:not([data-bs-theme="dark"]) .modal-content {
    border-color: rgba(32, 107, 196, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(32, 107, 196, 0.08) !important;
}

/* ─── E-Posta Picker Modal: Sabit Yükseklik ─── */
#modalEmailPicker .modal-body {
    min-height: 480px; /* Toplam modal iç yüksekliği */
}

#emailListSection {
    min-height: 440px; /* Arama kutusu + Liste alanı */
    display: flex;
    flex-direction: column;
}

#fullEmailList {
    flex-grow: 1;
    min-height: 350px; /* Listenin kendisi */
}

/* ─── Dashboard Hibrit Kart Stilleri ─── */
.horizontal-scroll-cards {
    display: flex;
    overflow-x: auto;
    padding-bottom: 15px;
    gap: 15px;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-cards::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-cards::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.horizontal-scroll-cards::-webkit-scrollbar-thumb {
    background: rgba(32, 107, 196, 0.2);
    border-radius: 10px;
}

.grafik-card .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.grafik-card:hover .card {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.mini-chart .apexcharts-canvas {
    margin: 0 auto;
}

[data-bs-theme="dark"] .grafik-card .card {
    background-color: rgba(29, 39, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-bs-theme="dark"] .horizontal-scroll-cards::-webkit-scrollbar-thumb {
    background: rgba(66, 153, 225, 0.3);
}

.x-small {
    font-size: 0.65rem !important;
    letter-spacing: 0.01em;
}

/* Tabler Orjinal Ribbon için küçük metin ayarı */
.ribbon-top {
    font-size: 0.6rem !important;
    line-height: 1.1 !important;
    z-index: 10;
}

.x-small {
    font-size: 0.65rem !important;
    letter-spacing: 0.01em;
}

.avatar i {
    font-size: 1.2rem;
}