/* TRT Font */
@font-face {
    font-family: 'TRT';
    src: url('../../fonts/TRTRegular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TRT';
    src: url('../../fonts/TRTRegularItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'TRT';
    src: url('../../fonts/TRTLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'TRT';
    src: url('../../fonts/TRTLightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'TRT';
    src: url('../../fonts/TRTMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'TRT';
    src: url('../../fonts/TRTMediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'TRT';
    src: url('../../fonts/TRTBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'TRT';
    src: url('../../fonts/TRTBoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

/* Genel Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TRT', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
    background: #0B7060;
    height: 56px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0; /* taşmaları düzgün kes */
}

/* Navbar - Daru’l-Fünun logo */
.navbar-darulfunun-logo {
    height: 34px;
    width: auto;
    max-width: 190px; /* logo çok uzunsa patlamasın */
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-title {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.navbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #FFFFFF;
}

.navbar-user-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

a.navbar-user-name {
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

a.navbar-user-name:link,
a.navbar-user-name:visited,
a.navbar-user-name:hover,
a.navbar-user-name:active,
a.navbar-user-name:focus,
a.navbar-user-name:focus-visible {
    color: rgba(255, 255, 255, 0.95) !important;
    text-decoration: none !important;
    outline: none;
}

a.navbar-user-name:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
}

a.navbar-user-name:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.navbar-user-name i {
    font-size: 14px;
    opacity: 0.9;
    color: inherit;
}

.navbar-user .btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar-user .btn-logout:hover,
.navbar-user .btn-logout:visited {
    color: #fff !important;
    text-decoration: none !important;
}

.navbar-user .btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.navbar-user .btn-logout i {
    font-size: 12px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 56px;
    width: 240px;
    height: calc(100vh - 56px);
    background: #fff;
    padding: 16px 0 0 0;
    overflow: hidden;
    box-shadow: 1px 0 3px rgba(0,0,0,0.06);
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.sidebar-menu-wrap {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

.sidebar-logo {
    flex-shrink: 0;
    padding: 20px 16px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Piston logo - maske yöntemi (orantılı büyütme, logo bozulmaz) */
.piston-mark {
    width: 220px;
    max-width: 100%;
    height: 66px;
    background: #374151;
    -webkit-mask-image: url("../../PISTON-BEYAZ-1.png");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-image: url("../../PISTON-BEYAZ-1.png");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-mode: luminance;
    mask-mode: luminance;
    object-fit: contain;
}

.piston-logo-fallback {
    max-width: 220px;
    width: 100%;
    max-height: 66px;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 1;
    object-fit: contain;
}

/* Maske destekleniyorsa fallback gizle */
@supports (-webkit-mask-image: url("")) or (mask-image: url("")) {
    .piston-logo-fallback { display: none; }
}

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

.sidebar-menu li {
    margin-bottom: 5px;
}

/* Menu Kategori Başlıkları */
.menu-category {
    margin-top: 20px;
    margin-bottom: 4px;
    padding: 0 20px;
}

.menu-category:first-child {
    margin-top: 8px;
}

.menu-category-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9ca3af;
    padding: 6px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    margin: 2px 10px;
}

.sidebar-menu a:hover {
    background-color: #f3f4f6;
    color: #0B7060;
}

.sidebar-menu a.active {
    background-color: #ecfdf5;
    color: #0B7060;
    font-weight: 600;
}

.sidebar-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: #6b7280;
}

.sidebar-menu a:hover i,
.sidebar-menu a.active i {
    color: #0B7060;
}

/* Alt Menü Stilleri */
.sidebar-menu li.has-submenu {
    position: relative;
}

.sidebar-menu li.has-submenu > a {
    cursor: pointer;
}

.submenu-icon {
    margin-left: auto !important;
    margin-right: 0 !important;
    width: auto !important;
    font-size: 11px !important;
    transition: transform 0.2s ease;
    color: #9ca3af !important;
}

.sidebar-menu li.has-submenu.active > a .submenu-icon {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding: 0;
    margin: 0 10px;
}

.sidebar-menu li.has-submenu.active .submenu {
    max-height: 500px;
    padding: 2px 0;
}

.submenu li {
    margin: 0;
}

.submenu a {
    padding: 8px 16px 8px 48px !important;
    font-size: 13px;
    margin: 0 !important;
    border-radius: 6px;
}

.submenu a:hover {
    background-color: #f3f4f6;
}

.submenu a.active {
    background-color: #ecfdf5;
    color: #0B7060;
    font-weight: 600;
}

/* Main Content */
.main-content {
    margin-left: 240px;
    margin-top: 56px;
    padding: 28px;
    min-height: calc(100vh - 56px);
    background-color: #f0f2f5;
}

/* İçeriğe göre yükseklik - alttaki gereksiz boş alanı kaldırır (talebeler vb. liste sayfaları) */
.main-content.content-fit {
    min-height: auto;
}

.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 22px;
    color: #111827;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    margin: 0;
}

.page-header h1 i {
    color: #0B7060;
    font-size: 20px;
}

/* Ana sayfa: Hızlı Erişim – kompakt ve tutarlı */
.quick-access-section {
    margin-bottom: 20px;
}
.quick-access-title {
    color: #0B7060;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.quick-access-title i {
    font-size: 14px;
}
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.quick-access-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(11, 112, 96, 0.08);
    text-decoration: none;
    color: #0B7060;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid rgba(11, 112, 96, 0.1);
}
.quick-access-card:hover {
    background: rgba(11, 112, 96, 0.06);
    border-color: rgba(11, 112, 96, 0.2);
    box-shadow: 0 4px 14px rgba(11, 112, 96, 0.12);
}
.quick-access-card i {
    font-size: 18px;
    color: #0B7060;
    opacity: 0.9;
    flex-shrink: 0;
}

button.quick-access-card {
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.quick-access-card--action {
    background: rgba(11, 112, 96, 0.08);
    border-color: rgba(11, 112, 96, 0.22);
    font-weight: 600;
}

.quick-access-card--action:hover {
    background: rgba(11, 112, 96, 0.14);
    border-color: rgba(11, 112, 96, 0.35);
}

/* Kartlar */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: #fff;
    padding: 20px 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    transition: box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #0B7060;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
}

.card-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 28px;
    color: #d1d5db;
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #0B7060;
    border-radius: 8px 0 0 8px;
}

/* Dashboard özet kartları: sadeleştirilmiş */
.dashboard-cards-wrap {
    position: relative;
    margin-bottom: 18px;
}

.cards-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.cards-grid--compact:last-of-type {
    margin-bottom: 24px;
}

.card--compact {
    padding: 12px 14px;
}

.card--compact .card-title {
    font-size: 11px;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.card--compact .card-value {
    font-size: 22px;
}

.card--compact .card-icon {
    top: 12px;
    right: 12px;
    font-size: 22px;
}

.card-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    line-height: 1.4;
}

.cards-grid--stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .cards-grid--stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards-grid--stats {
        grid-template-columns: 1fr;
    }
}

.card-value--danger { color: #dc3545; }
.card-value--warning { color: #fd7e14; }
.card-value--success { color: #28a745; }

.card-action {
    margin-top: 10px;
    display: inline-block;
}

.dashboard-cards-wrap.amounts-hidden .card-value-amount {
    color: #9ca3af !important;
    user-select: none;
}

.dashboard-toggle-amounts {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: rgba(11, 112, 96, 0.1);
    color: #0B7060;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.dashboard-toggle-amounts:hover {
    background: rgba(11, 112, 96, 0.2);
}

.dashboard-toggle-amounts i {
    font-size: 14px;
}

/* Filtre Bölümü */
.filter-section {
    background: #fff;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 600;
}

.filter-group label i {
    color: #6b7280;
    font-size: 13px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease;
    background-color: #fff;
    font-family: 'TRT', sans-serif;
    color: #111827;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0B7060;
    box-shadow: 0 0 0 2px rgba(11,112,96,0.15);
}

/* Tablolar */
.table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: #f9fafb;
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 12px 16px;
    color: #374151;
    font-size: 14px;
}

tbody td strong {
    color: #111827;
    font-weight: 600;
}

/* Badge (Etiketler) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge i {
    font-size: 10px;
}

.badge-success {
    background-color: #ecfdf5;
    color: #065f46;
}

.badge-warning {
    background-color: #fffbeb;
    color: #92400e;
}

.badge-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

.badge-info {
    background-color: #eff6ff;
    color: #1e40af;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Butonlar */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'TRT', sans-serif;
}

.btn:hover {
    opacity: 0.9;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #0B7060;
    color: #fff;
}

.btn-primary:hover {
    background: #0a6456;
}

.btn-secondary {
    background-color: #6b7280;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    margin-right: 4px;
}

.btn-info {
    background-color: #17a2b8;
    color: #FFFFFF;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-warning {
    background-color: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* Form Bölümü */
.form-section {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.form-section h2 {
    font-size: 16px;
    color: #111827;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h2 i {
    color: #0B7060;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.form-group label i {
    color: #6b7280;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'TRT', sans-serif;
    transition: border-color 0.15s ease;
    background-color: #fff;
    color: #111827;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0B7060;
    box-shadow: 0 0 0 2px rgba(11,112,96,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.bagisci-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.bagisci-mode-option {
    flex: 1 1 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 0;
}

.bagisci-mode-option input {
    accent-color: #0B7060;
    margin: 0;
}

.bagisci-mode-option:has(input:checked) {
    border-color: #0B7060;
    background: rgba(11, 112, 96, 0.08);
    color: #0B7060;
}

.bagisci-yeni-fields {
    padding: 14px;
    border: 1px dashed rgba(11, 112, 96, 0.25);
    border-radius: 10px;
    background: rgba(11, 112, 96, 0.03);
}

.bagisci-select-panel {
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bagisci-select-panel > label {
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
}

.searchable-select {
    position: relative;
}

.searchable-select__field {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.searchable-select.is-open .searchable-select__field,
.searchable-select__field:focus-within {
    border-color: #0B7060;
    box-shadow: 0 0 0 3px rgba(11, 112, 96, 0.1);
}

.searchable-select.is-selected .searchable-select__field {
    border-color: #0B7060;
    background: #f0fdfa;
}

.searchable-select__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.searchable-select.is-selected .searchable-select__icon-wrap {
    color: #0B7060;
}

.searchable-select__input {
    width: 100%;
    min-width: 0;
    padding: 12px 4px 12px 0;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-family: 'TRT', sans-serif;
    color: #111827;
    background: transparent;
    box-shadow: none;
    line-height: 1.35;
}

.searchable-select__input::placeholder {
    color: #9ca3af;
}

.searchable-select__input:focus {
    outline: none;
    box-shadow: none;
}

.searchable-select__input:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.searchable-select.is-selected .searchable-select__input {
    font-weight: 600;
    color: #0B7060;
}

.searchable-select__clear {
    position: static;
    justify-self: center;
    width: 28px;
    height: 28px;
    margin-right: 5px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.searchable-select__clear:hover {
    background: #e5e7eb;
    color: #374151;
}

.searchable-select__clear[hidden] {
    display: none !important;
}

.searchable-select__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 2100;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none !important;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.searchable-select__dropdown--fixed {
    position: fixed;
    right: auto;
    z-index: 10050;
}

.searchable-select__dropdown li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.searchable-select__header {
    padding: 8px 10px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #9ca3af;
    pointer-events: none;
    user-select: none;
}

.searchable-select__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.searchable-select__option-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(11, 112, 96, 0.1);
    color: #0B7060;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.searchable-select__option-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.searchable-select__option-name {
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.searchable-select__option-meta {
    font-size: 12px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.searchable-select__option-meta i {
    font-size: 10px;
    opacity: 0.85;
}

.searchable-select__option-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0B7060;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.searchable-select__option:hover,
.searchable-select__option.is-active {
    background: rgba(11, 112, 96, 0.08);
}

.searchable-select__option.is-selected {
    background: rgba(11, 112, 96, 0.06);
}

.searchable-select__option:hover .searchable-select__option-name,
.searchable-select__option.is-active .searchable-select__option-name,
.searchable-select__option.is-selected .searchable-select__option-name {
    color: #0B7060;
}

.searchable-select__empty {
    padding: 18px 12px;
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.searchable-select__empty i {
    font-size: 16px;
    opacity: 0.7;
}

.form-group .form-hint {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

/* İki Sütunlu Düzen (Eşleşmeler için) */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.column-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.column-box h2 {
    font-size: 16px;
    color: #111827;
    margin-bottom: 16px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-box h2 i {
    color: #0B7060;
}

/* Talebe Kartı - Görseldeki gibi iyileştirilmiş */
.talebe-item {
    padding: 18px;
    margin-bottom: 14px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}


.talebe-item-name {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.talebe-item-name i {
    color: #0B7060;
    font-size: 18px;
}

.talebe-item-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
}

.talebe-item-info i {
    color: #0B7060;
    font-size: 13px;
    width: 16px;
}

/* Info Box */
.info-box {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    color: #1e40af;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box i {
    font-size: 16px;
}

/* Grafik Placeholder */
.chart-placeholder {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 60, 51, 0.08);
    text-align: center;
    color: #999;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 60, 51, 0.05);
}

.chart-placeholder.chart-container {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
}

/* Anasayfa grafik kutusu – kompakt */
.chart-placeholder.chart-container.chart-compact {
    min-height: 0;
    padding: 12px 14px 14px;
}
.chart-placeholder.chart-container.chart-compact #chartAylikBagisWrap {
    max-height: 160px;
}
.chart-placeholder.chart-container.chart-compact #chartAylikBagis {
    width: 100% !important;
    height: 160px !important;
}

/* Anasayfa grafik + aktivite satırı */
.dashboard-chart-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.dashboard-activity-box {
    background: #FFFFFF;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 60, 51, 0.08);
    display: flex;
    flex-direction: column;
    max-height: 212px;
    overflow: hidden;
}

.dashboard-activity-box h3 {
    color: #0B7060;
    font-size: 16px;
    margin: 0 0 14px 0;
    font-weight: 600;
    flex-shrink: 0;
}

.dashboard-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
}

.dashboard-activity-list::-webkit-scrollbar {
    width: 5px;
}

.dashboard-activity-list::-webkit-scrollbar-thumb {
    background: rgba(11, 112, 96, 0.25);
    border-radius: 4px;
}

.dashboard-activity-item {
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-shrink: 0;
}

.dashboard-activity-item__date {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.dashboard-activity-item__title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.dashboard-activity-item__detail {
    font-size: 13px;
    color: #666;
}

.dashboard-activity-empty {
    text-align: center;
    padding: 28px 12px;
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 900px) {
    .dashboard-chart-row {
        grid-template-columns: 1fr;
    }

    .dashboard-activity-box {
        max-height: 280px;
    }
}

/* Info Cards (Talebe/Bağışçı Detay Kartları) */
.info-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.15s ease;
}

.info-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.info-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.info-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 52px;
    }
    
    .navbar-title {
        font-size: 14px;
        max-width: 200px;
    }
    .navbar-darulfunun-logo {
        height: 24px;
        max-width: 130px;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-right: 12px;
    }
    
    .sidebar {
        width: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        top: 52px;
        height: calc(100vh - 52px);
    }
    
    .sidebar.active {
        width: 240px;
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 52px;
        padding: 16px;
        min-height: calc(100vh - 52px);
    }
    
    .main-content.content-fit {
        min-height: auto;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .two-column-layout {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    table {
        min-width: 700px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .page-header .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar-user .navbar-user-link span {
        display: none;
    }

    .navbar-user span.navbar-user-name:not(.navbar-user-link) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-user .navbar-user-link,
    .navbar-user-name {
        padding: 6px 10px;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-value {
        font-size: 28px;
    }
}

/* Modal Stilleri */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.2s ease;
    overflow: hidden;
}
.modal:not(.active) {
    visibility: hidden;
    pointer-events: none;
}
.modal:not(.active) .modal-content {
    visibility: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    pointer-events: auto;
}
.modal.active .modal-content {
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    animation: slideUp 0.2s ease;
}

.modal-content .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.modal-header h2 {
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: #0B7060;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.modal-body {
    padding: 24px;
    background: #fff;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #f9fafb;
}

.donation-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

#donationSuccessActions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.donation-success-msg {
    margin: 0;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.donation-success-msg i {
    color: #0B7060;
}

.donation-success-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.aylik-tahsil-panel {
    margin-top: 4px;
    padding: 14px;
    background: #f8faf9;
    border: 1px solid #e2ebe8;
    border-radius: 10px;
}

.aylik-tahsil-panel > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a3d36;
}

.aylik-tahsil-panel .form-hint {
    margin: 0 0 12px;
    font-size: 0.85rem;
    color: #5c6f6a;
}

.aylik-tahsil-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.aylik-tahsil-quick-label {
    font-size: 0.85rem;
    color: #5c6f6a;
}

.aylik-quick-btn {
    padding: 5px 12px;
    font-size: 0.82rem;
    border: 1px solid #c5d9d3;
    border-radius: 20px;
    background: #fff;
    color: #0B7060;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.aylik-quick-btn:hover {
    background: #e8f5f2;
    border-color: #0B7060;
}

.aylik-tahsil-ozet {
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #d4e8e2;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2d4a44;
    line-height: 1.5;
}

.aylik-tahsil-ozet[hidden] {
    display: none !important;
}

.aylik-tahsil-ozet small {
    color: #5c6f6a;
}

.aylik-tahsil-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aylik-tahsil-chip {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.aylik-tahsil-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.aylik-tahsil-chip span {
    display: inline-block;
    padding: 7px 14px;
    border: 1.5px solid #d0ddd9;
    border-radius: 20px;
    font-size: 0.85rem;
    background: #fff;
    color: #3d524c;
    transition: all 0.15s;
}

.aylik-tahsil-chip:hover span {
    border-color: #0B7060;
    background: #f0faf7;
}

.aylik-tahsil-chip.is-selected span {
    background: #0B7060;
    border-color: #0B7060;
    color: #fff;
    font-weight: 600;
}

.aylik-tahsil-chip.is-tarih-ay:not(.is-selected) span {
    border-color: #7ab8ad;
    box-shadow: 0 0 0 1px rgba(11, 112, 96, 0.15);
}

.app-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-loading-overlay[hidden] {
    display: none !important;
}

body.app-loading-active {
    overflow: hidden;
    cursor: progress;
}

.app-loading-overlay__box {
    text-align: center;
    padding: 28px 36px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(11, 112, 96, 0.12);
    border: 1px solid #d1fae5;
    min-width: 220px;
}

.app-loading-overlay__spinner {
    font-size: 34px;
    color: #0B7060;
    margin-bottom: 14px;
    display: block;
}

.app-loading-overlay__text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #0B7060;
}

/* Detay Görünümü için Grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.detail-item {
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.detail-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    line-height: 1.4;
}

/* Aksiyon Butonları */
.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Ödeme İşaretleme Checkbox */
.payment-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #0B7060;
}

/* Alert Mesajları */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
}

.alert-success {
    background-color: #ecfdf5;
    border-left: 3px solid #10b981;
    color: #065f46;
}

.alert-warning {
    background-color: #fffbeb;
    border-left: 3px solid #f59e0b;
    color: #92400e;
}

.alert-danger {
    background-color: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
}

.alert-info {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
    color: #1e40af;
}

/* Inline Editing Stilleri */
.inline-edit {
    padding: 6px 10px;
    border: 2px solid #0B7060;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background-color: #FFFFFF;
    color: #0B7060;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inline-edit:hover {
    border-color: #0d8a75;
    background-color: #f8f9fa;
}

.inline-edit:focus {
    outline: none;
    border-color: #0B7060;
    box-shadow: 0 0 0 3px rgba(0, 60, 51, 0.1);
}

.editable {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.editable:hover {
    background-color: #f0f0f0;
    color: #0B7060;
}

.inline-edit-input {
    padding: 6px 10px;
    border: 2px solid #0B7060;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'TRT', sans-serif;
    width: 100%;
}

/* Utilities */
.text-center {
    text-align: center;
}

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

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

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

.full-width {
    width: 100%;
}

.flex {
    display: flex;
}

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

.gap-2 {
    gap: 0.5rem;
}
