:root {
    --primary: #8c0841;
    --primary-light: #b91c5e;
    --text: #494949;
    --bg: #f7f7f7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-none {
    flex: none;
}

.flex-1 {
    flex: 1 1 0%;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.min-h-screen {
    min-height: 100vh;
}

.fixed {
    position: fixed;
}

.left-0 {
    left: 0;
}

.top-0 {
    top: 0;
}

.h-full {
    height: 100%;
}

.w-72 {
    width: 18rem;
}

.w-0 {
    width: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-10 {
    z-index: 10;
}

.bg-white {
    background-color: #fff;
}

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-\[\#8c0841\] {
    background-color: var(--primary);
}

.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-gray-200 {
    border-color: var(--gray-200);
}

.border-transparent {
    border-color: transparent;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.ml-8 {
    margin-left: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mx-2 {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.leading-tight {
    line-height: 1.25;
}

.sidebar-brand {
    text-align: left;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-900 {
    color: var(--gray-900);
}

.text-white {
    color: #fff;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.hover\:bg-gray-50:hover {
    background-color: var(--gray-50);
}

.hover\:bg-gray-100:hover {
    background-color: var(--gray-100);
}

.hover\:bg-\[\#b91c5e\]:hover {
    background-color: var(--primary-light);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.flex-wrap {
    flex-wrap: wrap;
}

.bg-gray-100.border-\[\#8c0841\] {
    border-color: var(--primary);
}

.legend-btn.active {
    background-color: var(--gray-100);
    border: 2px solid var(--primary);
}

input, select {
    font-size: 0.875rem;
}

.min-w-0 {
    min-width: 0;
}

.min-h-\[600px\] {
    min-height: 600px;
}

.max-w-md {
    max-width: 28rem;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.bg-\[\#8c0841\]\/10 {
    background-color: rgba(140, 8, 65, 0.1);
}

.gap-4 {
    gap: 1rem;
}

.md\:col-span-2 {
    grid-column: span 2 / span 2;
}

.md\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.p-4 {
    padding: 1rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.sticky {
    position: sticky;
}

.block {
    display: block;
}

.list-none {
    list-style: none;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-8 {
    height: 2rem;
}

.w-full {
    width: 100%;
}

.h-auto {
    height: auto;
}

.divide-y > * + * {
    border-top-width: 1px;
}

.divide-gray-200 > * + * {
    border-color: var(--gray-200);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inline-flex {
    display: inline-flex;
}

.min-h-0 {
    min-height: 0;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-\[\#8c0841\] {
    --tw-gradient-from: #8c0841;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-\[\#b91c5e\] {
    --tw-gradient-to: #b91c5e;
}

.h-\[calc\(100vh-100px\)\] {
    height: calc(100vh - 100px);
}

.ml-72 {
    margin-left: 18rem;
}

.ml-0 {
    margin-left: 0;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-900);
}

tbody tr:hover {
    background-color: var(--gray-50);
}

tbody tr {
    transition: background-color 150ms;
}

/* Modern Sidebar Styles - Light Theme */
.sidebar-modern {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 50;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.04);
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0;
}

.sidebar-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    padding: 4px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.3px;
}

.brand-subtitle {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.875rem;
    -webkit-overflow-scrolling: touch;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

.nav-section {
    margin-bottom: 1.25rem;
}

.nav-section-title {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 10px;
    color: #4b5563;
    text-decoration: none !important;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: #f8fafc;
    color: #1f2937;
}

.nav-item.active {
    background: linear-gradient(135deg, #8c0841 0%, #b91c5e 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(140, 8, 65, 0.25);
}

.nav-item.nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-item-home {
    gap: 0.625rem;
}

.nav-item-home svg {
    color: #6b7280;
    flex-shrink: 0;
}

.nav-item-home:hover svg {
    color: #374151;
}

.nav-item-home.active svg {
    color: #fff;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.nav-icon svg {
    color: #fff;
}

.nav-item:hover .nav-icon {
    transform: scale(1.05);
}

.nav-item.active .nav-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.nav-text {
    font-size: 0.875rem;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
}

.nav-arrow {
    color: #9ca3af;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-group {
    margin-bottom: 2px;
}

.nav-group summary {
    list-style: none;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group[open] .nav-arrow {
    transform: rotate(180deg);
}

.nav-group[open] > summary {
    background: #f8fafc;
    border-radius: 10px;
}

.nav-submenu {
    margin-top: 4px;
    margin-left: 1.25rem;
    padding: 0.5rem 0;
    padding-left: 1rem;
    border-left: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-subitem {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.15s ease;
    position: relative;
    margin-left: 0.5rem;
}

.nav-subitem::before {
    content: '';
    position: absolute;
    left: -1.125rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2px solid #fff;
    transition: all 0.15s ease;
}

.nav-subitem:hover {
    color: #1f2937;
    background: #f1f5f9;
}

.nav-subitem:hover::before {
    background: #8c0841;
    transform: translateY(-50%) scale(1.1);
}

.nav-subitem.active {
    color: #8c0841;
    background: rgba(140, 8, 65, 0.08);
    font-weight: 600;
}

.nav-subitem.active::before {
    background: #8c0841;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 3px rgba(140, 8, 65, 0.15);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-version,
.footer-year {
    font-size: 0.6875rem;
    color: #9ca3af;
}

/* Main wrapper adjustment for new sidebar */
#main-wrapper {
    margin-left: 280px !important;
}

/* jVectorMap tooltip */
.jvectormap-tip {
    background: rgba(15, 23, 42, 0.92) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    pointer-events: none !important;
    z-index: 9999 !important;
    max-width: 180px;
}

.jvectormap-tip,
.jvectormap-tip * {
    color: #fff !important;
}

.jvectormap-tip td {
    padding: 1px 4px !important;
}

/* Header: sayfa ile birlikte kayar (sticky değil) */
.app-header {
    position: relative;
    z-index: 10;
}

.sidebar-toggle-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-700);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-toggle-btn:hover {
    background: var(--gray-50);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15, 23, 42, 0.35);
}

/* Details chevron */
details[open] .nav-chevron {
    transform: rotate(180deg);
}

/* Chart containers - React/Recharts ile aynı görünüm ve geçişler */
.chart-container {
    position: relative;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.chart-container canvas {
    display: block;
    max-width: 100%;
    transition: opacity 0.2s ease;
}

.chart-wrapper {
    min-height: 200px;
    position: relative;
}

/* Chart.js tooltip - Recharts tooltip stili */
.chartjs-tooltip {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: opacity 0.15s ease, transform 0.15s ease !important;
    pointer-events: none !important;
}

/* Chart.js tooltip takılma önleme - tüm tooltip benzeri elementler */
.chart-container > div > div[style*="position: absolute"],
.chart-container [id^="chartjs-"] {
    pointer-events: none !important;
}

/* Grid çizgileri rengi Chart.js varsayılanlarıyla uyumlu */

/* KPI kartları: tüm sayfalarda aynı yükseklik/his */
.kpi-grid {
    display: grid;
    gap: 1.5rem;
}

.kpi-grid .kpi-card {
    min-height: 0;
}

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

.rounded-xl.p-6 {
    padding: 0.75rem 1rem;
}

.min-h-\[48px\] {
    min-height: 48px;
}

.min-h-\[64px\] {
    min-height: 64px;
}

.min-h-\[88px\] {
    min-height: 88px;
}

.kpi-card .kpi-number {
    font-size: 1.75rem;
}

.kpi-card .text-sm {
    font-size: 0.8125rem;
}

.kpi-card .kpi-icon-wrap .kpi-icon {
    color: #8c0841 !important;
}

@media (min-width: 1024px) {
    .kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .kpi-grid .kpi-card {
        min-width: 0;
    }
}

/* Göstergeler sayfaları: KPI kartları daha kısa */
.gostergeler-kpi .rounded-xl {
    padding: 0.5rem 0.75rem !important;
}

.gostergeler-kpi .text-2xl {
    font-size: 1.25rem;
}

.gostergeler-kpi .mb-2 {
    margin-bottom: 0.25rem;
}

/* Harita zoom butonları */
.map-card {
    position: relative;
}

.map-wrapper {
    min-height: 200px;
}

.map-zoom-buttons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.map-zoom-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #374151;
    transition: background 0.15s, border-color 0.15s;
}

.map-zoom-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Tablo: arama ve pagination */
.table-toolbar {
    background: #fff;
}

.table-select {
    width: 5rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--gray-900);
}

.table-search-wrap {
    position: relative;
    display: inline-block;
}

.table-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.6;
    pointer-events: none;
}

.table-search-input {
    width: 16rem;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    font-size: 0.875rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.15s;
}

.table-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(140, 8, 65, 0.15);
}

.table-search-input::placeholder {
    color: var(--gray-400);
}

.table-pagination-wrap {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Global DataTables: length & filter gizle (dashboard stilleri için) */
.dataTables_length,
.dataTables_filter {
    display: none !important;
}

/* Export toolbar olan tablolarda length & filter göster */
.dataTables_wrapper.has-export .dataTables_length,
.dataTables_wrapper.has-export .dataTables_filter {
    display: block !important;
}

/* DataTable export toolbar - Modern tek satır layout, filtreler dahil */
.data-table-toolbar {
    margin-bottom: 1rem;
}
.data-table-toolbar .dt-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}
.data-table-toolbar .dt-toolbar-filters {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.data-table-toolbar .dt-toolbar-filters:empty {
    display: none;
}
.data-table-toolbar .dt-toolbar-filters:not(:empty) + .dt-toolbar-left {
    border-left: 1px solid rgba(0,0,0,0.06);
    padding-left: 1rem;
    margin-left: 0.25rem;
}
.data-table-toolbar .dt-toolbar-filters-inline {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}
.data-table-toolbar .dt-toolbar-filters-inline > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}
.data-table-toolbar .dt-toolbar-filters-inline > div > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.data-table-toolbar .dt-toolbar-filters-inline label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.data-table-toolbar .dt-toolbar-filters-inline .faculty-dept-select {
    min-width: 150px;
    max-width: 180px;
    height: 2.25rem;
    padding: 0 2rem 0 0.75rem;
    font-size: 0.8125rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
}
.data-table-toolbar .dt-toolbar-filters-inline .faculty-dept-select:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148,163,184,0.15);
}
.data-table-toolbar .dt-toolbar-filters-inline .filter-dept-wrap {
    opacity: 1;
    pointer-events: auto;
}
.data-table-toolbar .dt-toolbar-filters-inline .filter-dept-wrap .faculty-dept-select {
    min-width: 150px;
}
.data-table-toolbar .dt-toolbar-left {
    display: flex;
    align-items: center;
}
.data-table-toolbar .dt-toolbar-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}
.data-table-toolbar .dt-buttons-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.data-table-toolbar .dt-buttons-wrap .dt-buttons {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}
.data-table-toolbar .dt-search-wrap {
    display: flex;
    align-items: center;
}
.data-table-toolbar .dt-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.data-table-toolbar .dt-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.data-table-toolbar .dt-btn .dt-btn-icon {
    flex-shrink: 0;
}
.data-table-toolbar .dt-btn-excel {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
}
.data-table-toolbar .dt-btn-excel:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
}
.data-table-toolbar .dt-btn-pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}
.data-table-toolbar .dt-btn-pdf:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
}
.data-table-toolbar .dataTables_length label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}
.data-table-toolbar .dataTables_length select {
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    background: #fff;
    height: 2.5rem;
    font-weight: 500;
    color: #334155;
}
.data-table-toolbar .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}
.data-table-toolbar .dataTables_filter input {
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    width: 100%;
    min-width: 200px;
    height: 2.5rem;
    background: #fff;
}
.data-table-toolbar .dataTables_filter input:focus {
    outline: none;
    border-color: #8c0841;
    box-shadow: 0 0 0 3px rgba(140, 8, 65, 0.12);
}

/* DataTable tablo güzelleştirme */
.dataTables_wrapper.has-export table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
}
.dataTables_wrapper.has-export table.dataTable thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.dataTables_wrapper.has-export table.dataTable tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.dataTables_wrapper.has-export table.dataTable tbody tr:hover td {
    background: #f8fafc;
}

/* Kutucuk renklendirme - Hazırlık sayfası gibi (Toplam tablo) */
#totalStudentTable tbody td {
    vertical-align: middle;
}
#totalStudentTable .dt-cell-num {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    min-width: 3em;
    text-align: center;
    font-weight: 500;
}
#totalStudentTable .dt-cell-has-data {
    background-color: #d1fae5;
    color: #047857;
}
#totalStudentTable .dt-cell-total {
    font-weight: 600;
}
#totalStudentTable .dt-cell-total.dt-cell-has-data {
    background-color: #a7f3d0;
    color: #047857;
}
/* Veri yoksa - hazırlıktaki gibi hafif pembe kutu */
#totalStudentTable .dt-cell-num:not(.dt-cell-has-data) {
    background-color: rgba(140, 8, 65, 0.05);
    color: #6b7280;
}
#totalStudentTable .dt-cell-total:not(.dt-cell-has-data) {
    background-color: rgba(140, 8, 65, 0.08);
    color: #374151;
}

/* Fakülte sütunu - daralt, uzun isimler alt satıra geçsin */
#totalStudentTable .dt-col-faculty {
    max-width: 220px;
}
#totalStudentTable .dt-col-faculty .dt-faculty-wrap {
    display: block;
    max-width: 220px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Zebra satırlar - Toplam tablo */
#totalStudentTable tbody tr:nth-of-type(odd) td {
    background-color: #fff;
}
#totalStudentTable tbody tr:nth-of-type(even) td {
    background-color: rgba(248, 250, 252, 0.8);
}
#totalStudentTable tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* DataTables tabloları tam genişlik */
table.dataTable,
.dataTables_wrapper,
.dataTables_wrapper table {
    width: 100% !important;
}

.dataTables_scrollHead,
.dataTables_scrollBody {
    width: 100% !important;
}

.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table {
    min-width: 100% !important;
    width: max-content !important;
}

.dataTables_scrollBody table {
    min-width: 100% !important;
    width: max-content !important;
}

/* DataTables wrapper'larını dashboard stiline yaklaştır */
/* DataTables alt bilgi & sayfalama - GLOBAL, dashboard tablo stiline benzer */
.dataTables_wrapper .dataTables_info {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin: 0.5rem 0;
    word-break: break-word;
}

.dataTables_wrapper .dataTables_paginate {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dataTables_wrapper .dataTables_paginate ul.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.unit-type-page .unit-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .unit-type-page .unit-charts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.indicator-charts-row-2,
.indicator-charts-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .indicator-charts-row-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .indicator-charts-row-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.unit-type-page .unit-kpi-inner {
    text-align: center;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unit-type-page .unit-kpi-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.unit-type-page .unit-kpi-number-light {
    color: #fff;
}

.unit-type-page .unit-kpi-label {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 0.25rem;
}

.unit-type-page .unit-kpi-label-light {
    color: rgba(255, 255, 255, 0.8);
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate a.paginate_button,
.dataTables_paginate .paginate_button,
.dataTables_paginate a.paginate_button {
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 0.5rem !important;
    border-radius: 9999px !important;
    border: 1px solid #d1d5db !important;
    background: #fff !important;
    font-size: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #374151 !important;
    box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:link,
.dataTables_wrapper .dataTables_paginate .paginate_button:visited,
.dataTables_wrapper .dataTables_paginate .paginate_button:active,
.dataTables_wrapper .dataTables_paginate a.paginate_button:link,
.dataTables_wrapper .dataTables_paginate a.paginate_button:visited,
.dataTables_wrapper .dataTables_paginate a.paginate_button:active,
.dataTables_paginate a.paginate_button:link,
.dataTables_paginate a.paginate_button:visited,
.dataTables_paginate a.paginate_button:active {
    color: #374151 !important;
    text-decoration: none !important;
    background: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate a.paginate_button.current,
.dataTables_paginate .paginate_button.current,
.dataTables_paginate a.paginate_button.current {
    background: #8c0841 !important;
    border-color: #8c0841 !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current),
.dataTables_wrapper .dataTables_paginate a.paginate_button:hover:not(.current),
.dataTables_paginate .paginate_button:hover:not(.current),
.dataTables_paginate a.paginate_button:hover:not(.current) {
    border-color: #d1d5db !important;
    background: #f9fafb !important;
    color: #374151 !important;
}

.table-pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-pagination .table-prev,
.table-pagination .table-next {
    padding: 0.5rem;
    min-width: 32px;
    height: 32px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: #fff;
    color: var(--gray-700);
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}

.table-pagination .table-prev:hover:not(:disabled),
.table-pagination .table-next:hover:not(:disabled) {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.table-pagination .table-prev:disabled,
.table-pagination .table-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.table-pagination .table-page {
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: var(--gray-700);
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.table-pagination .table-page:hover {
    background: var(--gray-100);
}

.table-pagination .table-page.table-page-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.table-pagination .table-page.table-page-active:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.ml-3 {
    margin-left: 0.75rem;
}

/* DataTables Bootstrap 5 override - li border'ını kaldır, sadece a stillendir */
div.dataTables_wrapper div.dataTables_paginate ul.pagination li,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.page-item,
.dataTables_wrapper .dataTables_paginate .pagination .page-item {
    border: none !important;
    background: transparent !important;
    margin: 0 2px !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination li a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li .page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-link {
    color: #374151 !important;
    text-decoration: none !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 9999px !important;
    padding: 0.35rem 0.75rem !important;
    min-width: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination li.active a,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.active .page-link,
.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link {
    background-color: #8c0841 !important;
    border-color: #8c0841 !important;
    color: #fff !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination li a:hover,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li .page-link:hover,
.dataTables_wrapper .dataTables_paginate .pagination .page-link:hover {
    background-color: #f9fafb !important;
    border-color: #d1d5db !important;
    color: #374151 !important;
}

div.dataTables_wrapper div.dataTables_paginate ul.pagination li.active a:hover,
div.dataTables_wrapper div.dataTables_paginate ul.pagination li.active .page-link:hover {
    background-color: #8c0841 !important;
    color: #fff !important;
}

/* Mobile responsive fixes - global */
@media (max-width: 1023.98px) {
    .sidebar-modern {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    body.sidebar-mobile-open .sidebar-modern {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    #main-wrapper {
        margin-left: 0 !important;
        width: 100%;
    }

    .sidebar-toggle-btn {
        display: inline-flex;
    }

    .app-header .px-6,
    #main-wrapper > main.p-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .header-title {
        font-size: 0.95rem !important;
        line-height: 1.3;
    }
}

@media (max-width: 767.98px) {
    .header-title-block {
        min-width: 0;
    }

    .header-title {
        font-size: 0.875rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }

    .kpi-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0.75rem;
    }

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

    .grid.gap-6,
    .grid.gap-4 {
        gap: 0.75rem;
    }

    .table-toolbar,
    .table-pagination-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .table-search-wrap,
    .table-search-input {
        width: 100%;
        max-width: 100%;
    }

    .table-pagination {
        flex-wrap: wrap;
    }

    th {
        padding: 0.625rem 0.75rem;
        white-space: nowrap;
    }

    td {
        padding: 0.625rem 0.75rem;
    }

    .dataTables_wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }

    .dataTables_wrapper .col-sm-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .dataTables_wrapper .dataTables_paginate ul.pagination {
        flex-wrap: nowrap;
        width: max-content;
    }

    .dataTables_wrapper .dataTables_info {
        font-size: 0.6875rem;
    }

    .unit-type-page .unit-kpi-number {
        font-size: 1.25rem;
    }

    .unit-type-page .unit-kpi-label {
        font-size: 0.6875rem;
    }

    .unit-type-page .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Fakülte - Bölüm filtre select */
.faculty-dept-select {
    min-width: 200px;
    height: 38px;
    padding: 0 36px 0 14px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faculty-dept-select:hover { border-color: #d1d5db; }
.faculty-dept-select:focus {
    outline: none;
    border-color: #8c0841;
    box-shadow: 0 0 0 3px rgba(140,8,65,0.12);
}
.faculty-dept-select--disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}
.faculty-dept-select--disabled:hover { border-color: #e5e7eb; }

.faculty-dept-filter label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* İç içe tablo genişletme - DataTables varsayılan yeşil + kaldırıldı, sadece chevron */
table.dataTable td.dt-control:before,
table.dataTable tr.dt-hasChild td.dt-control:before {
    display: none !important;
    content: none !important;
}
td.dt-control {
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
}
.dt-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(140,8,65,0.08);
    color: #8c0841;
    transition: background 0.2s, transform 0.2s;
}
.dt-expand-btn:hover {
    background: rgba(140,8,65,0.15);
}
.dt-expand-btn.expanded {
    background: #8c0841;
    color: #fff;
    transform: rotate(180deg);
}
.dt-expand-btn svg {
    width: 14px;
    height: 14px;
}

/* İç içe tablo child row */
.dt-child-row {
    padding: 16px 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-left: 3px solid #8c0841;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.dt-child-row table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}
.dt-child-row th {
    text-align: left;
    padding: 8px 12px;
    font-weight: 500;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dt-child-row td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.dt-child-row tr:last-child td {
    border-bottom: none;
}
.dt-child-row tr:hover td {
    background: rgba(255,255,255,0.6);
}
.dt-child-row .dept-name {
    color: #4b5563;
    font-weight: 500;
}
