/**
 * SEDAŞ İş Takip CRM - Ana Stil Dosyası
 * Özel CSS stilleri ve tema ayarları
 * 
 * @author CRM Geliştirici
 * @date 2025-09-22
 */

/* ========================================
   CSS Değişkenleri (Custom Properties)
   ======================================== */
:root {
    /* Ana Renkler */
    --primary-color: #0E1D60;
    --secondary-color: #009D35;
    --accent-color: #007bff;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Gri Tonları */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Tipografi */
    --font-family-sans-serif: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --line-height-base: 1.5;
    
    /* Gölgeler */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Border Radius */
    --border-radius: 0.375rem;
    --border-radius-sm: 0.25rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    
    /* Geçişler */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ========================================
   Genel Stil Düzenlemeleri
   ======================================== */

body {
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--gray-800);
    background-color: var(--gray-100);
}

/* ========================================
   Navbar Stilleri
   ======================================== */

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    transition: var(--transition-base);
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

/* ========================================
   Kart Bileşenleri
   ======================================== */

.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card-header {
    background-color: white;
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0;
}

/* İstatistik Kartları */
.stats-card {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, white 0%, var(--gray-100) 100%);
    border-radius: var(--border-radius-lg);
    transition: var(--transition-base);
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stats-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stats-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-card .label {
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Form Stilleri
   ======================================== */

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: var(--transition-base);
    font-size: var(--font-size-base);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 29, 96, 0.15);
}

.form-control:invalid,
.form-select:invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
}

/* Zorunlu Alan İşareti */
.text-danger {
    color: var(--danger-color) !important;
}

/* ========================================
   Buton Stilleri
   ======================================== */

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Ana Buton Stilleri */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0a1750;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background-color: #008529;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* Küçük Butonlar */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* Buton Grupları */
.btn-group .btn {
    margin: 0;
}

/* ========================================
   Tablo Stilleri
   ======================================== */

.table {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th {
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    border-bottom: 2px solid var(--gray-200);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-200);
}

.table-hover tbody tr:hover {
    background-color: rgba(14, 29, 96, 0.05);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.025);
}

/* DataTables Özelleştirmeleri */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: var(--border-radius) !important;
    margin: 0 0.125rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: white !important;
}

/* ========================================
   Badge (Etiket) Stilleri
   ======================================== */

.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Durum Badge'leri */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-success {
    background-color: var(--secondary-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: var(--gray-800) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

.badge.bg-secondary {
    background-color: var(--gray-500) !important;
}

.badge.bg-light {
    background-color: var(--light-color) !important;
    color: var(--gray-800) !important;
    border: 1px solid var(--gray-300);
}

/* ========================================
   Modal Stilleri
   ======================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-100);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-title {
    color: #fff;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-100);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* ========================================
   Loading ve Spinner Stilleri
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    display: inline-block;
    width: 3rem;
    height: 3rem;
    border: 0.3rem solid rgba(255, 255, 255, 0.3);
    border-top: 0.3rem solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: var(--font-size-lg);
    margin-top: 1rem;
    text-align: center;
}

/* ========================================
   Toast Bildirimleri
   ======================================== */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1055;
}

.toast {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.toast-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

/* ========================================
   Alert Stilleri
   ======================================== */

.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(0, 157, 53, 0.1);
    color: #006d2c;
    border-left: 4px solid var(--secondary-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* ========================================
   Utility Sınıfları
   ======================================== */

/* Metin Renkleri */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

/* Arka Plan Renkleri */
.bg-primary-light {
    background-color: rgba(14, 29, 96, 0.05) !important;
}

.bg-secondary-light {
    background-color: rgba(0, 157, 53, 0.05) !important;
}

/* Border Stilleri */
.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* Gölge Sınıfları */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Hover Efektleri */
.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Responsive Düzenlemeler
   ======================================== */

/* Mobil Cihazlar */
@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--font-size-sm);
    }
    
    .stats-card .number {
        font-size: 1.5rem;
    }
    
    .stats-card .icon {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: var(--font-size-sm);
    }
}

/* Tablet Cihazlar */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        margin: 0.125rem 0;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
    }
}

/* ========================================
   Print Stilleri
   ======================================== */

@media print {
    .navbar,
    .btn,
    .modal,
    .loading-overlay,
    .toast-container {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .badge {
        border: 1px solid var(--gray-400);
        color: var(--gray-800) !important;
        background-color: white !important;
    }
}

/* ========================================
   Dark Mode Hazırlığı (İsteğe Bağlı)
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri buraya eklenebilir */
    /* Şu an için boş bırakıldı */
}

/* ========================================
   Özel Animasyonlar
   ======================================== */

/* Fade In Animasyonu */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Pulse Animasyonu */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ========================================
   Modern Sidebar Admin Panel Tasarımı
   ======================================== */

/* Sidebar Ana Stilleri */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(180deg, #0E1D60 0%, #1a237e 100%);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-brand {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sidebar-brand i {
    font-size: 2rem;
    color: #009D35;
    margin-right: 0.5rem;
}

.sidebar.collapsed .sidebar-brand span {
    display: none;
}

.sidebar.collapsed .sidebar-brand i {
    margin-right: 0;
}

.sidebar-menu {
    padding: 1rem 0;
}

.sidebar-menu .nav-item {
    margin: 0.25rem 0;
}

.sidebar-menu .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.875rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.sidebar-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar-menu .nav-link.active {
    background-color: rgba(0, 157, 53, 0.2);
    color: #009D35;
    border-right: 3px solid #009D35;
}

.sidebar-menu .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
}

.sidebar.collapsed .sidebar-menu .nav-link span {
    display: none;
}

.sidebar.collapsed .sidebar-menu .nav-link {
    justify-content: center;
    padding: 0.875rem 1rem;
}

.sidebar.collapsed .sidebar-menu .nav-link i {
    margin-right: 0;
}

.sidebar-user {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    color: white;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009D35, #0E1D60);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 0.75rem;
}

.user-details h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-details small {
    opacity: 0.8;
    font-size: 0.75rem;
}

.sidebar.collapsed .user-info {
    justify-content: center;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .user-avatar {
    margin-right: 0;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    transition: all 0.3s ease;
}

/*.main-content.expanded {
    margin-left: 80px;
}*/

.top-navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0E1D60;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
}

.page-header {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0E1D60;
    margin: 0;
}

.page-subtitle {
    color: #6c757d;
    margin: 0.5rem 0 0 0;
}

.content-wrapper {
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Loading durumu */
.sidebar.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Bildirim badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   Yetki Yönetimi Modern Stilleri
   ======================================== */

/* Modern Kart Hover Efektleri */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Modern Filtreleme Kartları */
.card.shadow-sm {
    transition: box-shadow 0.3s ease;
}

.card.shadow-sm:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* Modern Buton Efektleri */
.btn-group .btn {
    transition: all 0.3s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
}

/* Modern Form Elemanları */
.form-select-lg {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(14, 29, 96, 0.25);
}

/* Modern Radio Button Stilleri */
.form-check-input {
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check-label:hover {
    transform: translateX(2px);
}

/* Modern Icon Efektleri */
.bg-primary.bg-opacity-10 {
    transition: all 0.3s ease;
}

.card:hover .bg-primary.bg-opacity-10 {
    background-color: rgba(14, 29, 96, 0.2) !important;
    transform: scale(1.1);
}

/* Modern Başlık Efektleri */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Border Efektleri */
.border-top {
    border-top: 2px solid #e9ecef !important;
}

/* Modern Spacing */
.g-4 > * {
    padding: 1rem;
}

/* Modern Card Body Padding */
.card-body.p-4 {
    padding: 1.5rem !important;
}

/* Modern Button Padding */
.btn-lg.px-5 {
    padding: 0.75rem 3rem !important;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-lg.px-5:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* ========================================
   Özel Bileşenler
   ======================================== */

/* Progress Bar */
.progress {
    height: 0.75rem;
    border-radius: var(--border-radius-xl);
    background-color: var(--gray-200);
}

.progress-bar {
    border-radius: var(--border-radius-xl);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
    margin: 2rem 0;
}

/* Icon Box */
.icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.icon-box.primary {
    background-color: rgba(14, 29, 96, 0.1);
    color: var(--primary-color);
}

.icon-box.secondary {
    background-color: rgba(0, 157, 53, 0.1);
    color: var(--secondary-color);
}

/* ========================================
   Scrollbar Özelleştirmesi
   ======================================== */

/* Webkit tarayıcıları için */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--border-radius-xl);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Firefox için */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-100);
}

/* ========================================
   Akordeon Stilleri
   ======================================== */
.accordion-header {
    transition: all 0.3s ease;
    border-radius: 0.375rem 0.375rem 0 0;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-body {
    transition: all 0.3s ease;
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Akordeon kartları için özel stil */
.accordion .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Akordeon içindeki istatistik kartları */
.accordion .row .col-md-3 {
    margin-bottom: 1rem;
}

/* Responsive akordeon */
@media (max-width: 768px) {
    .accordion-header h4 {
        font-size: 1.1rem;
    }
    
    .accordion .row .col-md-3 {
        margin-bottom: 0.75rem;
    }
    
    .accordion .card {
        margin-bottom: 1.5rem;
    }
}

/* ========================================
   Coğrafi Raporlar Stilleri
   ======================================== */
.cografi-raporlar .card-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.cografi-raporlar .chart-container {
    position: relative;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.cografi-raporlar .chart-container canvas {
    max-height: 100% !important;
}

.cografi-raporlar h6 {
    font-weight: 600;
    border-bottom: 2px solid;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.cografi-raporlar .text-warning {
    border-bottom-color: #ffc107 !important;
}

.cografi-raporlar .text-success {
    border-bottom-color: #28a745 !important;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .cografi-raporlar .chart-container {
        height: 250px !important;
    }
}

/* ========================================
   Kullanıcıya Atanmış İşler Stilleri
   ======================================== */
#kullaniciyaAtananIslerCard .card-header {
    background: linear-gradient(135deg, #0E1D60 0%, #009D35 100%) !important;
    border-bottom: 2px solid #5a2d91;
}

#kullaniciyaAtananIslerCard .table {
    margin-bottom: 0;
}

#kullaniciyaAtananIslerCard .table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #6f42c1;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    padding: 1rem 0.75rem;
}

#kullaniciyaAtananIslerCard .table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

#kullaniciyaAtananIslerCard .table tbody tr:hover {
    background-color: rgba(111, 66, 193, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

#kullaniciyaAtananIslerCard .btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ========================================
   Son Eklenen İşler Tablosu Stilleri
   ======================================== */
.son-isler-tablo {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.son-isler-tablo .table {
    margin-bottom: 0;
}

.son-isler-tablo .table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #0E1D60;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    padding: 1rem 0.75rem;
}

.son-isler-tablo .table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.son-isler-tablo .table tbody tr:hover {
    background-color: rgba(14, 29, 96, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.son-isler-tablo .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.son-isler-tablo .badge.fs-6 {
    font-size: 0.8rem !important;
}

.son-isler-tablo .text-primary {
    color: #0E1D60 !important;
    font-weight: 600;
}

.son-isler-tablo .text-muted {
    font-size: 0.8rem;
}

.son-isler-tablo .text-nowrap {
    white-space: nowrap;
    font-size: 0.85rem;
}

/* Tab navigation stilleri */
.nav-tabs.nav-fill .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs.nav-fill .nav-link:hover {
    border-color: #0E1D60;
    color: #0E1D60;
    background-color: rgba(14, 29, 96, 0.05);
}

.nav-tabs.nav-fill .nav-link.active {
    border-color: #0E1D60;
    color: #0E1D60;
    background-color: rgba(14, 29, 96, 0.1);
    font-weight: 600;
}

/* Responsive tablo */
@media (max-width: 768px) {
    .son-isler-tablo .table thead th {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem;
    }
    
    .son-isler-tablo .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .son-isler-tablo .badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.5rem;
    }
    
    .son-isler-tablo .text-nowrap {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .son-isler-tablo .table thead th,
    .son-isler-tablo .table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    .son-isler-tablo .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.375rem;
    }
}

#tumunuSecEnerji,   #tumunuSecTrafo, .form-check-input.enerji-checkbox, .form-check-input.trafo-checkbox {
    border: 3px solid #0e1d60;
    border-radius: 4px;
  }

/* ========================================
   Yetki Yönetimi Sayfası Stilleri
   ======================================== */

/* Yetki Accordion Stilleri */
.yetki-accordion {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(14, 29, 96, 0.1);
}

.yetki-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.yetki-accordion .accordion-item:last-child {
    border-bottom: none;
}

/* Accordion Header Wrapper */
.yetki-accordion .accordion-header-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
}

.yetki-accordion .accordion-header-wrapper:has(.accordion-button:not(.collapsed)) {
    background: linear-gradient(135deg, #0E1D60 0%, #1a2d7a 100%);
}

.yetki-accordion .accordion-header-wrapper:has(.accordion-button:not(.collapsed)) .toplu-islem-btn {
    border-color: rgba(255,255,255,0.3);
}

.yetki-accordion .accordion-header {
    flex-grow: 1;
}

.yetki-accordion .accordion-button {
    background: transparent;
    color: #0E1D60;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    box-shadow: none;
    border: none;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.yetki-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.yetki-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.yetki-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(14, 29, 96, 0.25);
}

.yetki-accordion .accordion-button .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

/* Accordion button içindeki span'lar */
.yetki-accordion .accordion-button > span {
    flex-shrink: 0;
}

.yetki-accordion .accordion-button > i {
    flex-shrink: 0;
}

.yetki-accordion .accordion-body {
    padding: 0;
    background-color: #ffffff;
}

/* Toplu İşlem Butonları */
.toplu-islem-grup {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.toplu-islem-btn {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1;
}

.toplu-islem-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.toplu-islem-btn i {
    font-size: 0.6rem;
}

/* Yetki Tablosu Stilleri */
.yetki-table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.yetki-table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #0E1D60;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    padding: 0.75rem 1rem;
    text-align: center;
    white-space: nowrap;
}

.yetki-table thead th:first-child {
    text-align: left;
}

.yetki-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.yetki-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
}

.yetki-table tbody tr:hover {
    background-color: rgba(14, 29, 96, 0.03);
}

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

/* Radio Button Stilleri */
.yetki-table .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    border: 2px solid #adb5bd;
    transition: all 0.2s ease;
}

.yetki-table .form-check-input:checked {
    background-color: #0E1D60;
    border-color: #0E1D60;
}

.yetki-table .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(14, 29, 96, 0.25);
}

.yetki-table .form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

/* Yetki İstatistik Kartları */
.yetki-istatistik {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.yetki-istatistik-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 3px solid;
    min-width: 120px;
}

.yetki-istatistik-item.duzenle {
    border-color: #009D35;
}

.yetki-istatistik-item.goruntule {
    border-color: #0E1D60;
}

.yetki-istatistik-item.gizle {
    border-color: #dc3545;
}

.yetki-istatistik-item .sayi {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.yetki-istatistik-item .etiket {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Filtre Bölümü */
.yetki-filtre-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ========================================
   Mobil Swiper Stilleri (Yetki Yönetimi)
   ======================================== */
.yetki-swiper-container {
    display: none;
}

.yetki-swiper {
    padding-bottom: 2.5rem;
}

.yetki-swiper .swiper-slide {
    height: auto;
}

.yetki-swiper-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.yetki-swiper-card:active {
    transform: scale(0.98);
}

.yetki-swiper-card .alan-adi {
    font-size: 1rem;
    font-weight: 600;
    color: #0E1D60;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.yetki-swiper-card .yetki-secenekler {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.yetki-swiper-card .yetki-secenek {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.yetki-swiper-card .yetki-secenek:hover {
    background: #e9ecef;
}

.yetki-swiper-card .yetki-secenek.selected {
    border-color: #0E1D60;
    background: rgba(14, 29, 96, 0.1);
}

.yetki-swiper-card .yetki-secenek.selected.duzenle {
    border-color: #009D35;
    background: rgba(0, 157, 53, 0.1);
}

.yetki-swiper-card .yetki-secenek.selected.gizle {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.yetki-swiper-card .yetki-secenek label {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    margin: 0;
}

/* Swiper Pagination */
.yetki-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #adb5bd;
    opacity: 1;
}

.yetki-swiper .swiper-pagination-bullet-active {
    background: #0E1D60;
}

/* Swiper Navigation */
.yetki-swiper .swiper-button-next,
.yetki-swiper .swiper-button-prev {
    color: #0E1D60;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.yetki-swiper .swiper-button-next::after,
.yetki-swiper .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: bold;
}

/* Grup Başlık (Mobil) */
.yetki-grup-baslik-mobil {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, #0E1D60 0%, #1a2d7a 100%);
    color: #ffffff;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.yetki-grup-baslik-mobil .grup-adi {
    font-weight: 600;
    font-size: 1rem;
}

.yetki-grup-baslik-mobil .alan-sayisi {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.yetki-grup-baslik-mobil .toggle-icon {
    transition: transform 0.3s ease;
}

.yetki-grup-baslik-mobil.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* ========================================
   Responsive Düzenlemeler (Yetki Yönetimi)
   ======================================== */
@media (max-width: 991px) {
    .yetki-table thead th,
    .yetki-table tbody td {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .yetki-table .form-check-input {
        width: 1.1rem;
        height: 1.1rem;
    }

    .toplu-islem-btn {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 768px) {
    /* Masaüstü tablo gizle */
    .yetki-desktop-view {
        display: none !important;
    }

    /* Mobil swiper göster */
    .yetki-swiper-container {
        display: block !important;
    }

    .yetki-istatistik {
        flex-direction: column;
        gap: 0.5rem;
    }

    .yetki-istatistik-item {
        min-width: 100%;
    }

    .yetki-filtre-card {
        padding: 1rem;
    }

    .accordion-button {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .toplu-islem-grup {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (min-width: 769px) {
    /* Masaüstü tablo göster */
    .yetki-desktop-view {
        display: block !important;
    }

    /* Mobil swiper gizle */
    .yetki-swiper-container {
        display: none !important;
    }
}

/* Kaydet Butonu Stilleri */
.yetki-kaydet-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #009D35 0%, #00b33e 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 157, 53, 0.3);
    transition: all 0.3s ease;
}

.yetki-kaydet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 157, 53, 0.4);
    background: linear-gradient(135deg, #00b33e 0%, #00cc47 100%);
}

.yetki-kaydet-btn:active {
    transform: translateY(0);
}

/* Disabled Satır Stili (Yönetici için) */
.yetki-table tbody tr.disabled-row {
    background-color: #f8f9fa;
    opacity: 0.7;
}

.yetki-table tbody tr.disabled-row td {
    color: #6c757d;
}

.yetki-table tbody tr.disabled-row .form-check-input {
    cursor: not-allowed;
}

/* ========================================
   Modern Modal Stilleri (Kullanıcı Yönetimi)
   ======================================== */

/* Modal Gradient Header - Yeni Kullanıcı (Yeşil) */
.modal-header-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-bottom: none;
    border-radius: calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-header-gradient-success .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header-gradient-success .btn-close:hover {
    opacity: 1;
}

.modal-header-gradient-success .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Modal Gradient Header - Düzenleme (Mavi) */
.modal-header-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    border-radius: calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-header-gradient-primary .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header-gradient-primary .btn-close:hover {
    opacity: 1;
}

.modal-header-gradient-primary .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Modern Modal Content */
.modal-content-modern {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* Icon Input Groups */
.input-group-icon {
    position: relative;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
    z-index: 5;
    transition: color 0.2s ease;
}

.input-group-icon .form-control,
.input-group-icon .form-select {
    padding-left: 2.75rem;
    border-radius: var(--border-radius) !important;
    border: 1px solid var(--gray-300);
    transition: all 0.2s ease;
}

.input-group-icon .form-control:focus,
.input-group-icon .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 29, 96, 0.1);
}

.input-group-icon .form-control:focus + .input-icon,
.input-group-icon:focus-within .input-icon {
    color: var(--primary-color);
}

/* Form Section Cards */
.form-section-card {
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.form-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-title i {
    font-size: 1rem;
}

/* Password Strength Indicator */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0;
    z-index: 5;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--gray-700);
}

.password-strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.strength-weak {
    width: 25%;
    background: var(--danger-color);
}

.password-strength-fill.strength-fair {
    width: 50%;
    background: var(--warning-color);
}

.password-strength-fill.strength-good {
    width: 75%;
    background: var(--info-color);
}

.password-strength-fill.strength-strong {
    width: 100%;
    background: var(--success-color);
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.password-strength-text.text-weak { color: var(--danger-color); }
.password-strength-text.text-fair { color: var(--warning-color); }
.password-strength-text.text-good { color: var(--info-color); }
.password-strength-text.text-strong { color: var(--success-color); }

/* Modern Modal Footer */
.modal-footer-modern {
    background: var(--gray-100);
    border-top: none;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.btn-outline-cancel {
    border: 2px solid var(--gray-300);
    color: var(--gray-600);
    background: transparent;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-outline-cancel:hover {
    background: var(--gray-200);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

.btn-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3);
    transition: all 0.2s ease;
}

.btn-gradient-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(17, 153, 142, 0.4);
    color: white;
}

.btn-gradient-success:active {
    transform: translateY(0);
}

.btn-gradient-success:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-gradient-primary:active {
    transform: translateY(0);
}

.btn-gradient-primary:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: 50%;
    left: 50%;
    margin-left: -0.5rem;
    margin-top: -0.5rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spinner 0.6s linear infinite;
}

@keyframes btn-spinner {
    to { transform: rotate(360deg); }
}

/* Form Label Styling */
.form-label-modern {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-label-modern .text-danger {
    font-size: 1rem;
}

/* Select2 Style for Firma Select */
.select-searchable {
    position: relative;
}

/* Responsive Modal */
@media (max-width: 576px) {
    .modal-header-gradient-success,
    .modal-header-gradient-primary {
        padding: 1rem;
    }

    .modal-header-gradient-success .modal-title,
    .modal-header-gradient-primary .modal-title {
        font-size: 1.1rem;
    }

    .form-section-card {
        padding: 1rem;
    }

    .modal-footer-modern {
        flex-direction: column;
    }

    .modal-footer-modern .btn {
        width: 100%;
    }
}

/* ========================================
   Bildirim Dropdown Stilleri
   ======================================== */

/* Bildirim Toggle Butonu */
.bildirim-dropdown .notification-toggle {
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bildirim-dropdown .notification-toggle:hover {
    background: var(--gray-100);
}

.bildirim-dropdown .notification-toggle .fa-bell {
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.bildirim-dropdown .notification-toggle:hover .fa-bell {
    transform: rotate(15deg);
}

.bildirim-badge {
    font-size: 0.6rem !important;
    padding: 0.25rem 0.45rem !important;
    min-width: 18px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Bildirim Menu */
.bildirim-menu {
    width: 380px;
    max-width: 95vw;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bildirim Header */
.bildirim-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2d7a 100%);
    color: white;
}

.bildirim-header h6 {
    color: white;
    font-size: 1rem;
}

.bildirim-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.bildirim-header .btn-close:hover {
    opacity: 1;
}

.bildirim-actions {
    display: flex;
    gap: 0.5rem;
}

.bildirim-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.bildirim-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.bildirim-actions .btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.3);
}

/* Bildirim Listesi */
.bildirim-listesi {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    overflow-x: hidden;
}

.bildirim-listesi::-webkit-scrollbar {
    width: 6px;
}

.bildirim-listesi::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.bildirim-listesi::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.bildirim-listesi::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Bildirim Öğesi */
.bildirim-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.bildirim-item:hover {
    background: var(--gray-50, #fafbfc);
}

.bildirim-item.okunmamis {
    background: linear-gradient(90deg, #e3f2fd 0%, white 100%);
    border-left: 3px solid var(--primary-color);
}

.bildirim-item.okunmamis:hover {
    background: linear-gradient(90deg, #d1e7fd 0%, var(--gray-50, #fafbfc) 100%);
}

.bildirim-item .bildirim-ikon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
    background: var(--gray-100);
}

.bildirim-item.okunmamis .bildirim-ikon {
    background: #e3f2fd;
}

.bildirim-item .bildirim-icerik {
    flex: 1;
    min-width: 0;
}

.bildirim-item .bildirim-baslik {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    flex-wrap: wrap;
}

.bildirim-item .bildirim-baslik .baslik-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.bildirim-item .bildirim-baslik .tip-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    background: var(--gray-200);
    color: var(--gray-600);
    text-transform: uppercase;
    font-weight: 600;
}

.bildirim-item .bildirim-mesaj {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bildirim-item .bildirim-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.bildirim-item .bildirim-zaman {
    font-size: 0.7rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.bildirim-item .bildirim-sil {
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
}

.bildirim-item:hover .bildirim-sil {
    opacity: 1;
}

/* Boş Durum */
.bildirim-bos {
    padding: 3rem 2rem;
    text-align: center;
}

.bildirim-bos .bos-ikon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bildirim-bos .bos-ikon i {
    font-size: 2rem;
    color: var(--gray-400);
}

.bildirim-bos p {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.bildirim-bos small {
    font-size: 0.8rem;
}

/* Bildirim Footer */
.bildirim-footer {
    padding: 0.75rem 1rem;
    background: var(--gray-50, #fafbfc);
    border-top: 1px solid var(--gray-100);
}

.bildirim-footer .btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.6rem 1rem;
}

/* Skeleton Loading */
.bildirim-skeleton {
    padding: 0;
}

.skeleton-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.skeleton-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-right: 1rem;
}

.skeleton-content {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    width: 60%;
    height: 14px;
}

.skeleton-text {
    width: 90%;
}

.skeleton-text.short {
    width: 40%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobil Responsive */
@media (max-width: 576px) {
    .bildirim-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        transform: none !important;
        margin: 0 !important;
        animation: slideUp 0.3s ease-out;
    }

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

    .bildirim-header {
        padding: 1.25rem;
        padding-top: calc(1.25rem + env(safe-area-inset-top, 0));
    }

    .bildirim-listesi {
        max-height: calc(100vh - 200px);
        height: calc(100vh - 200px);
    }

    .bildirim-item {
        padding: 1rem;
    }

    .bildirim-item .bildirim-sil {
        opacity: 1;
    }

    .bildirim-footer {
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    }
}

@media (max-width: 768px) and (min-width: 577px) {
    .bildirim-menu {
        width: 340px;
    }
}

/* ========================================
   CONTEXT MENU (SAĞ TIK MENÜSÜ)
   ======================================== */

.context-menu {
    position: fixed;
    z-index: 9999;
    min-width: 200px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-10px);
    transform-origin: top left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.context-menu.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.context-menu-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.context-menu-header i {
    font-size: 0.85rem;
}

.context-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.context-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.9rem;
    color: #333;
}

.context-menu-item:hover {
    background: #f8f9fa;
}

.context-menu-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 0.9rem;
}

.context-menu-item span {
    flex: 1;
}

.context-menu-item.context-menu-danger {
    color: var(--danger-color);
}

.context-menu-item.context-menu-danger:hover {
    background: #fff5f5;
}

.context-menu-divider {
    height: 1px;
    background: #e9ecef;
    margin: 6px 12px;
}

/* Satır vurgulama (sağ tık yapıldığında) */
.kullanici-satir.context-active {
    background-color: rgba(14, 29, 96, 0.08) !important;
}

/* İşlem Dropdown Stilleri */
.islem-dropdown {
    min-width: 180px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 8px 0;
}

.islem-dropdown .dropdown-item {
    padding: 10px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}

.islem-dropdown .dropdown-item:hover {
    background: #f8f9fa;
}

.islem-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
}

.islem-dropdown .dropdown-divider {
    margin: 6px 12px;
}

/* Mobil için context menu devre dışı bırak */
@media (max-width: 991.98px) {
    .context-menu {
        display: none !important;
    }
}