/* public/assets/css/app.css - Fibyte Modern SaaS Portal Refined Elegant Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    --primary: #135bec;
    --primary-hover: #0e45b5;
    --primary-subtle: #eff6ff;
    --primary-light: #dbeafe;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --sidebar-width: 240px;
    --header-height: 60px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
    --shadow-hover: 0 10px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
}

:root {
    --primary: #135bec;
    --primary-hover: #0e45b5;
    --primary-subtle: #eff6ff;
    --primary-light: #dbeafe;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --sidebar-width: 240px;
    --header-height: 56px;
    --radius-lg: 10px;
    --radius-md: 7px;
    --radius-sm: 5px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

[data-bs-theme="dark"] {
    --bg-light: #0b0f19;
    --card-bg: #151c2c;
    --border-color: #242e42;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --primary-subtle: rgba(19, 91, 236, 0.16);
    --primary-light: rgba(19, 91, 236, 0.28);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --shadow-hover: 0 8px 30px -4px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Base Refined Typography (Dengeli, Okunabilir & Modern SaaS) */
html {
    font-size: 15px; /* Dengeli, gözü yormayan modern SaaS ölçeği */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 0.933rem; /* ~14px: net ve rahat okunabilir altın standart */
    line-height: 1.55;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Linkler */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
}

[data-bs-theme="dark"] a {
    color: #60a5fa;
}

[data-bs-theme="dark"] a:hover {
    color: #93c5fd;
}

/* Koyu Mod (Dark Mode) Gelişmiş Uyumluluk ve Erişilebilirlik */
[data-bs-theme="dark"] {
    --bs-body-color: #f1f5f9;
    --bs-body-bg: #0b0f19;
    --bs-secondary-color: #94a3b8;
    --bs-tertiary-color: #64748b;
    --bs-border-color: #242e42;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.08);
}

/* Metin Renkleri & Kontrast İyileştirmeleri */
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .dark\:text-white,
[data-bs-theme="dark"] .text-body,
[data-bs-theme="dark"] .text-black {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-body-secondary,
[data-bs-theme="dark"] .form-label.text-secondary {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .text-black-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-bs-theme="dark"] .form-text {
    color: #94a3b8 !important;
}

/* Arka Planlar & Çerçeveler */
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] .dark\:bg-dark {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--border-color) !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .dark\:bg-card-bg {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

/* Header Butonları & Kısayolları */
.header-btn,
.app-header .btn-light {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: #475569;
    transition: all 0.15s ease;
}

.header-btn:hover,
.app-header .btn-light:hover {
    background-color: #f8fafc;
    color: var(--primary);
    border-color: #cbd5e1;
}

[data-bs-theme="dark"] .header-btn,
[data-bs-theme="dark"] .app-header .btn-light {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}

[data-bs-theme="dark"] .header-btn:hover,
[data-bs-theme="dark"] .app-header .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.13) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .header-btn .text-dark,
[data-bs-theme="dark"] .header-btn .text-muted,
[data-bs-theme="dark"] .header-btn .material-symbols-outlined,
[data-bs-theme="dark"] .app-header .btn-light .text-dark,
[data-bs-theme="dark"] .app-header .btn-light .text-muted,
[data-bs-theme="dark"] .app-header .btn-light .material-symbols-outlined {
    color: inherit !important;
}

/* Genel .btn-light (Tüm Sayfalar ve Modallarda) */
[data-bs-theme="dark"] .btn-light {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn-light:focus,
[data-bs-theme="dark"] .btn-light:active {
    background-color: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-light .material-symbols-outlined {
    color: inherit;
}

/* Outline Butonlar */
[data-bs-theme="dark"] .btn-outline-secondary {
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:focus,
[data-bs-theme="dark"] .btn-outline-secondary:active,
[data-bs-theme="dark"] .btn-outline-secondary.active {
    background-color: #334155 !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus,
[data-bs-theme="dark"] .btn-outline-primary:active,
[data-bs-theme="dark"] .btn-outline-primary.active {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-info {
    color: #38bdf8 !important;
    border-color: #0ea5e9 !important;
}

[data-bs-theme="dark"] .btn-outline-info:hover,
[data-bs-theme="dark"] .btn-outline-info:focus,
[data-bs-theme="dark"] .btn-outline-info:active,
[data-bs-theme="dark"] .btn-outline-info.active {
    background-color: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-success {
    color: #4ade80 !important;
    border-color: #22c55e !important;
}

[data-bs-theme="dark"] .btn-outline-success:hover,
[data-bs-theme="dark"] .btn-outline-success:focus,
[data-bs-theme="dark"] .btn-outline-success:active,
[data-bs-theme="dark"] .btn-outline-success.active {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-warning {
    color: #fbbf24 !important;
    border-color: #f59e0b !important;
}

[data-bs-theme="dark"] .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-warning:focus,
[data-bs-theme="dark"] .btn-outline-warning:active,
[data-bs-theme="dark"] .btn-outline-warning.active {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-danger {
    color: #f87171 !important;
    border-color: #ef4444 !important;
}

[data-bs-theme="dark"] .btn-outline-danger:hover,
[data-bs-theme="dark"] .btn-outline-danger:focus,
[data-bs-theme="dark"] .btn-outline-danger:active,
[data-bs-theme="dark"] .btn-outline-danger.active {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .btn-outline-dark {
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

[data-bs-theme="dark"] .btn-outline-dark:hover {
    background-color: #334155 !important;
    border-color: #64748b !important;
    color: #ffffff !important;
}

/* Secondary Custom Buton Dark Mode */
[data-bs-theme="dark"] .btn-secondary-custom {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .btn-secondary-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #60a5fa;
}

/* Tablolar & Table-Light / thead.bg-light */
[data-bs-theme="dark"] .table {
    --bs-table-color: #f1f5f9;
    --bs-table-bg: transparent;
    --bs-table-border-color: #242e42;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.02);
    --bs-table-hover-color: #f1f5f9;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table .table-light,
[data-bs-theme="dark"] thead.table-light,
[data-bs-theme="dark"] thead.table-light th,
[data-bs-theme="dark"] thead.bg-light,
[data-bs-theme="dark"] thead.bg-light th,
[data-bs-theme="dark"] .table thead th {
    --bs-table-bg: #111724 !important;
    --bs-table-color: #94a3b8 !important;
    --bs-table-border-color: #242e42 !important;
    background-color: #111724 !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #242e42 !important;
}

[data-bs-theme="dark"] .table tbody tr td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

/* Badges & Rozetler */
[data-bs-theme="dark"] .badge.bg-light {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-bs-theme="dark"] .badge.bg-secondary-subtle {
    background-color: rgba(148, 163, 184, 0.15) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

[data-bs-theme="dark"] .badge.bg-primary-subtle {
    background-color: rgba(19, 91, 236, 0.18) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(19, 91, 236, 0.3) !important;
}

[data-bs-theme="dark"] .badge.bg-success-subtle {
    background-color: rgba(34, 197, 94, 0.16) !important;
    color: #86efac !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
}

[data-bs-theme="dark"] .badge.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.16) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
}

[data-bs-theme="dark"] .badge.bg-danger-subtle {
    background-color: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
}

[data-bs-theme="dark"] .badge.bg-info-subtle {
    background-color: rgba(14, 165, 233, 0.16) !important;
    color: #7dd3fc !important;
    border: 1px solid rgba(14, 165, 233, 0.28) !important;
}

/* Input Group & Form Elemanları */
[data-bs-theme="dark"] .input-group-text {
    background-color: #111724;
    border-color: #242e42;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .input-group-text.bg-transparent {
    background-color: transparent !important;
    color: #94a3b8;
}

[data-bs-theme="dark"] .input-group-text.bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .input-group-text.bg-white {
    background-color: #111724 !important;
    color: #cbd5e1 !important;
}

/* Modal Kapatma Butonu */
[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Alert Uyarı Kutuları */
[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
    color: #fef3c7 !important;
}

[data-bs-theme="dark"] .alert-info {
    background-color: rgba(14, 165, 233, 0.12) !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
    color: #e0f2fe !important;
}

[data-bs-theme="dark"] .alert-success {
    background-color: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: #dcfce7 !important;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fee2e2 !important;
}

[data-bs-theme="dark"] .alert-primary {
    background-color: rgba(19, 91, 236, 0.12) !important;
    border-color: rgba(19, 91, 236, 0.3) !important;
    color: #dbeafe !important;
}

/* Destek Sohbet Baloncukları */
.support-bubble-other {
    background-color: #ffffff;
    border-color: var(--border-color);
}

.support-bubble-mine {
    background-color: rgba(19, 91, 236, 0.05);
    border-color: rgba(19, 91, 236, 0.2) !important;
}

.support-bubble-internal {
    background-color: #fffbeb;
    border-color: #fde68a !important;
}

[data-bs-theme="dark"] .support-bubble-other {
    background-color: #151c2c !important;
    border-color: #242e42 !important;
}

[data-bs-theme="dark"] .support-bubble-mine {
    background-color: rgba(19, 91, 236, 0.15) !important;
    border-color: rgba(19, 91, 236, 0.3) !important;
}

[data-bs-theme="dark"] .support-bubble-internal {
    background-color: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

/* Dengeli ve Zarif Başlık Standartları */
h1, .h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.025em; color: var(--text-main); }
h2, .h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-main); }
h3, .h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text-main); }
h4, .h4 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text-main); }
h5, .h5 { font-size: 0.96rem; font-weight: 600; color: var(--text-main); }
h6, .h6 { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }

/* Dengeli Font Büyüklük Yardımcıları */
.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.78rem !important; }
.fs-9 { font-size: 0.72rem !important; }
.tracking-tight { letter-spacing: -0.02em !important; }
.tracking-widest { letter-spacing: 0.1em !important; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    vertical-align: middle;
    line-height: 1;
    font-size: 1.28rem;
}

/* Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }
    .app-sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.4);
    }
    .app-main {
        margin-left: 0 !important;
    }
    .sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(4px);
        z-index: 1025;
        display: none;
    }
    .sidebar-backdrop.show {
        display: block;
    }
}

.app-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

[data-bs-theme="dark"] .app-header {
    background-color: rgba(21, 28, 44, 0.92);
}

.content-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
}

/* Sidebar Elements (Kibar & Kompakt) */
.sidebar-brand {
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-main);
}

.sidebar-nav {
    padding: 0.6rem 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.65rem 0.65rem 0.25rem 0.65rem;
    letter-spacing: 0.07em;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    margin-bottom: 3px;
}

.sidebar-link .material-symbols-outlined {
    font-size: 1.22rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.sidebar-link:hover {
    background-color: var(--primary-subtle);
    color: var(--primary);
}

.sidebar-link:hover .material-symbols-outlined {
    color: var(--primary);
}

.sidebar-link.active {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(19, 91, 236, 0.25);
}

.sidebar-link.active .material-symbols-outlined {
    color: #ffffff;
    font-variation-settings: 'FILL' 1;
}

/* Collapsible Dropdown & Submenu */
.sidebar-dropdown {
    margin-bottom: 2px;
}

.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.48rem 0.75rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.86rem;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.sidebar-dropdown-toggle .material-symbols-outlined:not(.sidebar-arrow) {
    font-size: 1.22rem;
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.sidebar-dropdown-toggle:hover {
    background-color: var(--primary-subtle);
    color: var(--primary);
}

.sidebar-dropdown-toggle:hover .material-symbols-outlined {
    color: var(--primary);
}

.sidebar-dropdown-toggle .sidebar-arrow {
    font-size: 1.15rem;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

.sidebar-dropdown-toggle[aria-expanded="true"] .sidebar-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.sidebar-dropdown-toggle.active-parent {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(19, 91, 236, 0.05);
}

.sidebar-dropdown-toggle.active-parent .material-symbols-outlined:not(.sidebar-arrow) {
    color: var(--primary);
    font-variation-settings: 'FILL' 1;
}

/* Submenu container with modern tree guide-line */
.sidebar-submenu {
    position: relative;
    margin-left: 1.35rem;
    padding-left: 0.65rem;
    border-left: 2px solid var(--border-color);
    margin-top: 3px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.38rem 0.65rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-sublink:hover {
    color: var(--primary);
    background-color: var(--primary-subtle);
}

.sidebar-sublink.active {
    color: var(--primary);
    background-color: var(--primary-subtle);
    font-weight: 600;
}

.sidebar-sublink.active::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background-color: var(--primary);
}

/* Cards & Containers (Gölge, İnce Kenarlık, Havada Duran Kart Hissi) */
.card-custom {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, transform 0.2s ease;
}

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

.stat-card {
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-subtle);
    color: var(--primary);
}

.stat-card .stat-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.stat-card .stat-val {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Tablolar (Estetik, İnce Çizgili, Havada Duran Gölge & Okunabilir) */
.table-responsive {
    border-radius: var(--radius-lg);
    background-color: var(--card-bg);
}

.table-custom {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-main);
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom th {
    background-color: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #64748b;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

[data-bs-theme="dark"] .table-custom th {
    background-color: #111724;
    color: #94a3b8;
    border-bottom: 1px solid #1e293b;
}

.table-custom td {
    padding: 0.78rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-main);
}

[data-bs-theme="dark"] .table-custom td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.table-custom tbody tr {
    transition: background-color 0.15s ease;
}

.table-custom tbody tr:hover {
    background-color: rgba(19, 91, 236, 0.025);
}

[data-bs-theme="dark"] .table-custom tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

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

.table-custom a:not(.btn) {
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.15s ease;
}

.table-custom a:not(.btn):hover {
    color: var(--primary);
}

[data-bs-theme="dark"] .table-custom a:not(.btn) {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .table-custom a:not(.btn):hover {
    color: #60a5fa;
}

.table-custom .btn {
    padding: 0.28rem 0.6rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.table-custom .btn-primary-custom,
.table-custom a.btn-primary-custom {
    color: #ffffff !important;
    background-color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    text-decoration: none !important;
}

.table-custom .btn-primary-custom:hover,
.table-custom a.btn-primary-custom:hover {
    color: #ffffff !important;
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.table-custom .btn-primary-custom .material-symbols-outlined,
.table-custom a.btn-primary-custom .material-symbols-outlined,
.table-custom .btn-primary-custom span,
.table-custom a.btn-primary-custom span {
    color: #ffffff !important;
}

.table-custom .btn-light {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.table-custom .btn-light:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

[data-bs-theme="dark"] .table-custom .btn-light {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--border-color);
    color: #f1f5f9;
}

[data-bs-theme="dark"] .table-custom .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Butonlar (Zarif & Rahat Okunabilir) */
.btn-primary-custom {
    background-color: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.46rem 1rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 1px 2px rgba(19, 91, 236, 0.18), 0 2px 4px rgba(19, 91, 236, 0.1);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(19, 91, 236, 0.3);
    transform: translateY(-1px);
}

.btn-secondary-custom {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.46rem 1rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary-custom:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--primary);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-sm {
    padding: 0.36rem 0.8rem;
    font-size: 0.84rem;
    border-radius: var(--radius-sm);
}

/* Modals */
.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
}

/* Modals & Form Scrolling Fix */
.modal-dialog-scrollable {
    max-height: calc(100vh - 3.5rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Form child directly inside modal-content */
.modal-dialog-scrollable .modal-content > form,
.modal-dialog-scrollable .modal-content > .ajax-form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.modal-dialog-scrollable .modal-content > form > .modal-body,
.modal-dialog-scrollable .modal-content > .ajax-form > .modal-body,
.modal-dialog-scrollable .modal-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer,
.modal-dialog-scrollable form > .modal-footer {
    flex-shrink: 0;
}

/* Scrollbar styling for modal-body */
.modal-dialog-scrollable .modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 4px;
}
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}

/* Form Kontrolleri (Zarif, Net, İnce Çerçeveli & Rahat) */
.form-control, .form-select {
    background-color: var(--card-bg);
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 0.48rem 0.8rem;
    font-size: 0.88rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

[data-bs-theme="dark"] .form-control, 
[data-bs-theme="dark"] .form-select {
    background-color: #111724;
    border-color: #242e42;
    color: var(--text-main);
}

.form-control:focus, .form-select:focus {
    background-color: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.12);
    color: var(--text-main);
}

[data-bs-theme="dark"] .form-control:focus, 
[data-bs-theme="dark"] .form-select:focus {
    background-color: #111724;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

/* Rozetler / Badges (Zarif & Okunaklı) */
.badge {
    font-weight: 500;
    font-size: 0.76rem;
    padding: 0.28rem 0.58rem;
    border-radius: 5px;
    letter-spacing: 0.015em;
}

.badge-pill {
    padding: 0.28rem 0.68rem;
    font-weight: 500;
    font-size: 0.76rem;
    border-radius: 9999px;
}

/* Dropdown Menus */
.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    font-size: 0.88rem;
    padding: 0.45rem;
}

[data-bs-theme="dark"] .dropdown-menu {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.42rem 0.75rem;
    color: var(--text-main);
    font-size: 0.85rem;
}

.dropdown-item:hover {
    background-color: var(--primary-subtle);
    color: var(--primary);
}

/* İlerleme Çubukları (Progress) */
.progress {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

[data-bs-theme="dark"] .progress {
    background-color: #334155;
}

/* Başarısız Bildirim Alarm Kutusu */
.failed-notification-alert {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-radius: var(--radius-lg);
    padding: 0.9rem 1.25rem;
    color: #991b1b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.06);
    font-size: 0.88rem;
}

[data-bs-theme="dark"] .failed-notification-alert {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.18) 0%, rgba(185, 28, 28, 0.25) 100%);
    border-color: #7f1d1d;
    color: #fca5a5;
}

/* Empty State */
.empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--primary-subtle);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.empty-state-icon .material-symbols-outlined {
    font-size: 1.75rem;
}

/* Loading Spinner Bar */
#ajax-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2.5px;
    width: 0;
    background: linear-gradient(90deg, #135bec, #06b6d4);
    z-index: 99999;
    transition: width 0.25s ease;
}

/* Nav Tabs */
.nav-tabs .nav-link {
    font-size: 0.88rem;
    padding: 0.7rem 1.15rem;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    background: transparent;
    font-weight: 600;
}

/* Print CSS */
@media print {
    .app-sidebar, .app-header, .no-print, .btn, .sidebar-brand {
        display: none !important;
    }
    .app-main {
        margin-left: 0 !important;
    }
    .content-body {
        padding: 0 !important;
    }
    body {
        background-color: #fff !important;
        color: #000 !important;
        font-size: 12px !important;
    }
    .card-custom {
        border: none !important;
        box-shadow: none !important;
    }
}

/* ==========================================================================
   Fibyte Modern DataTables Styling (Light & Dark Theme)
   ========================================================================== */
.dataTables_wrapper {
    padding: 1rem 1.25rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-main);
    background-color: var(--card-bg);
    outline: none;
    transition: all 0.15s ease-in-out;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.15);
}

.dataTables_wrapper .dataTables_length select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.35rem 1.75rem 0.35rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text-main);
    background-color: var(--card-bg);
    outline: none;
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.75rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

.dataTables_wrapper .page-link {
    font-size: 0.825rem;
    padding: 0.35rem 0.65rem;
    color: var(--text-main);
    border-color: var(--border-color);
    background-color: var(--card-bg);
    border-radius: 4px !important;
    margin: 0 2px;
}

.dataTables_wrapper .page-item.active .page-link {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.dataTables_wrapper .page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: transparent;
    opacity: 0.6;
}

/* DataTables Table Sorting Headers */
table.dataTable thead th {
    position: relative;
    cursor: pointer;
    user-select: none;
}

table.dataTable thead .sorting:hover,
table.dataTable thead .sorting_asc:hover,
table.dataTable thead .sorting_desc:hover {
    background-color: rgba(19, 91, 236, 0.04);
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select,
[data-bs-theme="dark"] .dataTables_wrapper .page-link {
    background-color: #1a2335;
    border-color: #2e3a52;
    color: #e2e8f0;
}

[data-bs-theme="dark"] table.dataTable thead .sorting:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Modern Select2 Design System Integration (Bootstrap 5 & Dark Mode)
   ========================================================================== */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
    padding: 5px 12px !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: var(--text-main) !important;
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm, 6px) !important;
    display: flex !important;
    align-items: center !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-main) !important;
    padding-left: 0 !important;
    padding-right: 20px !important;
    line-height: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-muted) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 18px;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--text-muted) !important;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.15s ease;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: var(--danger, #ef4444) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-muted) transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--text-muted) transparent !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.15) !important;
    outline: 0 !important;
}

.select2-dropdown {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md, 8px) !important;
    box-shadow: var(--shadow-hover) !important;
    font-size: 0.875rem !important;
    z-index: 1065 !important;
    overflow: hidden !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
    padding: 6px 10px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm, 6px) !important;
    color: var(--text-main) !important;
    background-color: var(--card-bg) !important;
    font-size: 0.85rem !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(19, 91, 236, 0.15) !important;
}

.select2-results__option {
    padding: 7px 12px !important;
    color: var(--text-main) !important;
    font-size: 0.85rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--primary-subtle) !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* Dark Mode Adjustments for Select2 */
[data-bs-theme="dark"] .select2-container .select2-selection--single {
    background-color: #151c2c !important;
    border-color: #242e42 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .select2-dropdown {
    background-color: #151c2c !important;
    border-color: #242e42 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background-color: #0b0f19 !important;
    border-color: #242e42 !important;
    color: #f1f5f9 !important;
}

[data-bs-theme="dark"] .select2-results__option {
    color: #cbd5e1 !important;
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
    color: #ffffff !important;
}

/* Reminder Modal & Header Button Attention Styling */
@keyframes reminderPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.btn-reminder-attention {
    position: relative;
    border-color: #fca5a5 !important;
    background-color: #fff1f2 !important;
}

[data-bs-theme="dark"] .btn-reminder-attention {
    border-color: #7f1d1d !important;
    background-color: rgba(220, 38, 38, 0.15) !important;
}

.btn-reminder-attention .material-symbols-outlined {
    color: #ef4444 !important;
    animation: reminderPulse 2s infinite ease-in-out;
}

.popup-reminder-card {
    transition: all 0.25s ease;
}

.popup-reminder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.reminder-modal-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
    border-bottom: 1px solid var(--border-color);
}

/* Fractional padding, margin & gap utility extensions */
.p-2\.5 { padding: 0.625rem !important; }
.p-3\.5 { padding: 1.15rem !important; }
.px-2\.5 { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
.px-3\.5 { padding-left: 1.15rem !important; padding-right: 1.15rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3\.5 { padding-top: 1.15rem !important; padding-bottom: 1.15rem !important; }
.gap-1\.5 { gap: 0.375rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3\.5 { gap: 1.15rem !important; }
.credit-card-box {
    padding: 1.25rem !important;
}




