/**
 * Berna Sanat Müzik Evi - Randevu & Cari Takip Sistemi
 * Özel Stil Dosyası - Premium Turkuaz & Antrasit Teması
 */

:root {
    /* Turkuaz Ana Renk Paleti */
    --primary-turquoise: #0d9488;
    --primary-turquoise-hover: #0f766e;
    --primary-turquoise-bright: #14b8a6;
    --primary-turquoise-light: #f0fdfa;
    --primary-turquoise-border: #99f6e4;
    --primary-turquoise-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 60%, #0f766e 100%);
    
    /* Vurgular & İkincil Renkler */
    --accent-gold: #D5A726;
    --accent-cyan: #06b6d4;
    --dark-anthracite: #132227; /* Derin turkuaz-antrasit */
    --dark-surface: #1e3137;
    --light-bg: #f4fbfb;        /* Çok yumuşak turkuaz esintili açık gri */
    --border-color: #d8eaeb;
    --text-main: #192e33;
    --text-muted: #607981;
    --sidebar-width: 260px;
    
    /* Durum Renkleri */
    --success-green: #10b981;
    --danger-red: #ef4444;
    --info-blue: #0284c7;
    --warning-orange: #f59e0b;

    /* Geriye dönük uyumluluk */
    --primary-gold: var(--primary-turquoise);
    --primary-gold-dark: var(--primary-turquoise-hover);
    --primary-gold-light: var(--primary-turquoise-light);
    --primary-gold-gradient: var(--primary-turquoise-gradient);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ==================== LOGIN SCREEN ==================== */
.login-body {
    background: radial-gradient(circle at 10% 20%, rgba(15, 118, 110, 0.92) 0%, rgba(19, 34, 39, 0.98) 90%), 
                url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1.5px solid var(--primary-turquoise-border);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(13, 148, 136, 0.25);
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
}

.login-brand-border {
    height: 4px;
    width: 70px;
    background: var(--primary-turquoise-gradient);
    border-radius: 2px;
    margin: 10px auto 20px auto;
}

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

.sidebar {
    width: var(--sidebar-width);
    background: var(--dark-anthracite);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0,0,0,0.12);
    z-index: 1020;
    transition: all 0.3s ease;
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(13, 148, 136, 0.08);
}

.sidebar-brand img {
    height: 45px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0.75rem;
    margin: 0;
    flex-grow: 1;
}

.sidebar-menu .menu-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(204, 251, 241, 0.5);
    padding: 0.75rem 0.75rem 0.35rem 0.75rem;
    font-weight: 600;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.sidebar-menu a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--primary-turquoise-bright);
}

.sidebar-menu a:hover {
    color: #fff;
    background: rgba(20, 184, 166, 0.18);
}

.sidebar-menu a.active {
    background: var(--primary-turquoise-gradient);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.45);
}

.sidebar-menu a.active i {
    color: #fff;
}

.sidebar-user {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0,0,0,0.25);
}

/* Main Content Area */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.04);
}

.page-content {
    padding: 1.75rem;
    flex-grow: 1;
}

/* ==================== BUTTONS & CARDS ==================== */
.btn-gold,
.btn-turquoise {
    background: var(--primary-turquoise-gradient);
    color: #fff !important;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    transition: all 0.2s;
}

.btn-gold:hover, .btn-gold:focus,
.btn-turquoise:hover, .btn-turquoise:focus {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

.btn-gold-outline,
.btn-turquoise-outline {
    border: 1.5px solid var(--primary-turquoise);
    color: var(--primary-turquoise-hover);
    font-weight: 600;
    background: transparent;
}

.btn-gold-outline:hover,
.btn-turquoise-outline:hover {
    background: var(--primary-turquoise);
    color: #fff;
}

.card-custom {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(13, 148, 136, 0.04);
    margin-bottom: 1.5rem;
}

.card-custom .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 1.4rem;
    font-weight: 600;
}

/* Metric / Stat Cards */
.stat-card {
    border-radius: 14px;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.04);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.gold, .stat-card.turquoise { background: #fff; }
.stat-card.gold::before, .stat-card.turquoise::before { background: var(--primary-turquoise); }
.stat-card.green::before { background: var(--success-green); }
.stat-card.blue::before { background: var(--info-blue); }
.stat-card.red::before { background: var(--danger-red); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.stat-icon.gold, .stat-icon.turquoise { 
    background: rgba(13, 148, 136, 0.12); 
    color: var(--primary-turquoise); 
}
.stat-icon.green { background: rgba(16, 185, 129, 0.12); color: var(--success-green); }
.stat-icon.blue { background: rgba(2, 132, 199, 0.12); color: var(--info-blue); }
.stat-icon.red { background: rgba(239, 68, 68, 0.12); color: var(--danger-red); }

/* ==================== DERS ÇİZELGESİ (TIMETABLE GRID) ==================== */
.timetable-container {
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    box-shadow: 0 6px 22px rgba(13, 148, 136, 0.06);
    overflow-x: auto;
}

.timetable-header {
    background: linear-gradient(135deg, #0f766e 0%, #132227 100%);
    color: #fff;
    padding: 1.25rem 1.75rem;
    border-radius: 13px 13px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.timetable-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timetable-title .instructor-badge {
    background: var(--primary-turquoise-bright);
    color: #042f2e;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.timetable-grid {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
}

.timetable-grid th, 
.timetable-grid td {
    border: 1px solid var(--border-color);
    padding: 0;
    vertical-align: top;
}

.timetable-grid th {
    background: #f0fdfa;
    color: var(--dark-anthracite);
    font-weight: 700;
    text-align: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
}

.timetable-grid th.time-col-header {
    width: 80px;
    background: #e6f7f6;
    color: #43656c;
    font-size: 0.85rem;
}

.timetable-grid th .day-date {
    display: block;
    color: var(--primary-turquoise);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.timetable-grid th.today-col {
    background: #ccfbf1;
    border-top: 3.5px solid var(--primary-turquoise);
}

.time-cell {
    background: #f8fdfd;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #4b666d;
    padding: 0.85rem 0.25rem;
    width: 80px;
    user-select: none;
}

.slot-cell {
    height: 70px;
    position: relative;
    background: #ffffff;
    transition: background 0.15s ease;
}

.slot-cell:hover {
    background: #f9fefe;
}

.slot-cell.empty-slot {
    cursor: pointer;
}

.slot-cell.empty-slot:hover::after {
    content: '+ Ders Ekle';
    position: absolute;
    inset: 6px;
    border: 1.5px dashed var(--primary-turquoise);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-turquoise);
    background: rgba(20, 184, 166, 0.1);
}

/* Randevu Kartı (Slot İçinde) */
.lesson-card {
    height: calc(100% - 8px);
    margin: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-left: 4px solid var(--primary-turquoise);
    background: #f0fdfa;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.08);
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.16);
}

.lesson-card .student-name {
    color: #132227;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-card .lesson-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #607981;
    margin-top: 2px;
}

/* Durum Stilleri - ÇOK DAHA BELİRGİN VE CANLI RENKLER */
/* 1. Planlandı / Bekliyor (Göz Alıcı Berrak Mavi) */
.lesson-card.status-scheduled {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%) !important;
    border: 2px solid #38bdf8 !important;
    border-left: 6px solid #0284c7 !important;
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.15) !important;
}
.lesson-card.status-scheduled .student-name {
    color: #0369a1 !important;
    font-weight: 800 !important;
}
.lesson-card.status-scheduled .lesson-meta {
    color: #0284c7 !important;
    font-weight: 600;
}
.lesson-card.status-scheduled:hover {
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.25) !important;
}

/* 2. Tamamlandı (Geldi - Canlı Zümrüt Yeşili) */
.lesson-card.status-completed {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border: 2px solid #4ade80 !important;
    border-left: 6px solid #16a34a !important;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.18) !important;
}
.lesson-card.status-completed .student-name {
    color: #14532d !important;
    font-weight: 800 !important;
}
.lesson-card.status-completed .lesson-meta {
    color: #166534 !important;
    font-weight: 600;
}
.lesson-card.status-completed:hover {
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.28) !important;
}

/* 3. Gelmedi (Katılmadı - Canlı Sıcak Turuncu / Amber) */
.lesson-card.status-no_show {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%) !important;
    border: 2px solid #fb923c !important;
    border-left: 6px solid #ea580c !important;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.18) !important;
}
.lesson-card.status-no_show .student-name {
    color: #7c2d12 !important;
    font-weight: 800 !important;
}
.lesson-card.status-no_show .lesson-meta {
    color: #9a3412 !important;
    font-weight: 700;
}
.lesson-card.status-no_show:hover {
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.28) !important;
}

/* 4. İptal Edildi (Kırmızı Çizgili & Belirgin İptal) */
.lesson-card.status-cancelled {
    background: #fef2f2 !important;
    border: 1.5px dashed #f87171 !important;
    border-left: 6px solid #dc2626 !important;
    opacity: 0.88;
}
.lesson-card.status-cancelled .student-name {
    text-decoration: line-through #dc2626 2.5px !important;
    -webkit-text-decoration-color: #dc2626 !important;
    -webkit-text-decoration-line: line-through !important;
    color: #991b1b !important;
    font-weight: 700;
}
.lesson-card.status-cancelled .lesson-meta {
    color: #b91c1c !important;
    font-weight: 600;
}

/* ==================== SAĞ TIK BAĞLAM MENÜSÜ (CONTEXT MENU) ==================== */
.lesson-context-menu {
    position: fixed;
    z-index: 99999;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
    min-width: 230px;
    padding: 6px;
    font-family: 'Outfit', sans-serif;
    animation: contextFadeIn 0.1s ease-out;
}
@keyframes contextFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.context-menu-header {
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 4px;
}
.context-student-name {
    display: block;
    font-weight: 800;
    font-size: 13.5px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.context-lesson-meta {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}
.context-menu-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}
.context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s, color 0.12s;
}
.context-item:hover {
    background: #f1f5f9;
}
.context-item i {
    width: 18px;
    font-size: 15px;
    text-align: center;
}
.context-item-completed:hover {
    background: #ecfdf5 !important;
    color: #15803d !important;
}
.context-item-noshow:hover {
    background: #fff7ed !important;
    color: #c2410c !important;
}
.context-item-scheduled:hover {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}
.context-item-cancelled:hover {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}
.context-item-whatsapp:hover {
    background: #f0fdf4 !important;
    color: #16a34a !important;
}

/* ==================== SÜRÜKLE & BIRAK (DRAG & DROP) ==================== */
.lesson-card[draggable="true"] {
    cursor: grab !important;
    user-select: none;
    -webkit-user-drag: element;
}
.lesson-card[draggable="true"]:active {
    cursor: grabbing !important;
}
.lesson-card.dragging {
    opacity: 0.35 !important;
    transform: scale(0.96) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
    border: 2px dashed #0d9488 !important;
}

.slot-cell.drag-over {
    background: rgba(20, 184, 166, 0.18) !important;
    outline: 2.5px dashed #0d9488 !important;
    outline-offset: -3px;
    transition: all 0.12s ease-in-out;
}

/* ==================== ÇOKLU EĞİTMEN RANDAVU GÖRÜNÜMÜ ==================== */
.dentist-grid {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.dentist-grid th, 
.dentist-grid td {
    border: 1px solid var(--border-color);
    padding: 0;
    vertical-align: top;
}

.dentist-grid th.instructor-header-cell {
    background: #ffffff;
    padding: 0.85rem 0.5rem;
    text-align: center;
    border-top: 4px solid var(--primary-turquoise);
}

.dentist-grid th.instructor-header-cell .instructor-avatar-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 6px;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.18);
}

/* ==================== MOBİL & TABLET RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .app-wrapper {
        position: relative;
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1060;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .sidebar.show-mobile {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(19, 34, 39, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1055;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .main-wrapper {
        width: 100%;
        min-width: 0;
    }

    .top-navbar {
        padding: 0.75rem 1rem;
    }

    .page-content {
        padding: 1rem 0.85rem;
    }

    /* Mobilde yatay kaydırılabilir tablolar için dokunmatik kaydırma */
    .timetable-container,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }

    .stat-card {
        padding: 1rem;
        gap: 0.8rem;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .login-card {
        margin: 1rem;
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .timetable-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .timetable-title {
        font-size: 1.05rem;
        flex-wrap: wrap;
    }

    .btn-group .btn {
        padding: 0.35rem 0.55rem;
        font-size: 0.82rem;
    }
}

/* ==================== BASKI & YAZDIRMA GÖRÜNÜMÜ ==================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0 !important; /* Tarayıcının varsayılan URL, tarih ve başlık üst/alt bilgilerini kaldırır */
    }
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .sidebar, .top-navbar, .no-print, .btn, .breadcrumb, .sidebar-backdrop, .dataTables_filter, .dataTables_length, .dataTables_paginate, .dataTables_info, .modal {
        display: none !important;
    }
    .main-wrapper, .page-content {
        padding: 12mm 15mm !important; /* Sayfa içi temiz marjin (URL basılmadan) */
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
    }
    a[href]:after {
        content: none !important; /* Tarayıcının linklerin arkasına URL eklemesini engeller */
    }
    .card, .card-custom {
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .timetable-container {
        border: 1.5px solid #000 !important;
        box-shadow: none !important;
    }
    .timetable-grid th, .timetable-grid td,
    .dentist-grid th, .dentist-grid td {
        border: 1px solid #cbd5e1 !important;
    }
    .timetable-header {
        background: #f8fafc !important;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
    }
    .timetable-title {
        color: #000 !important;
    }
}

/* ==================== DATATABLES CUSTOM STYLING ==================== */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}
.dataTables_wrapper .dataTables_filter input {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.375rem 0.75rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-turquoise);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.15);
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.3rem 1.8rem 0.3rem 0.6rem;
}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: var(--primary-turquoise) !important;
    border-color: var(--primary-turquoise) !important;
    color: #fff !important;
}
.dataTables_wrapper .dataTables_paginate .page-link {
    color: var(--text-main);
    border-radius: 6px;
    margin: 0 2px;
}
.dataTables_wrapper .dataTables_paginate .page-link:hover {
    background-color: var(--primary-turquoise-light);
    color: var(--primary-turquoise);
}
table.dataTable thead th {
    border-bottom: 2px solid var(--border-color) !important;
    font-weight: 700;
    color: var(--text-main);
}
.cursor-pointer {
    cursor: pointer;
}

/* ==================== COLLAPSIBLE SIDEBAR ==================== */
.sidebar.collapsed {
    width: 72px !important;
}
.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-menu .menu-title,
.sidebar.collapsed .sidebar-menu a span,
.sidebar.collapsed .sidebar-user .user-info-text {
    display: none !important;
}
.sidebar.collapsed .sidebar-brand {
    justify-content: center !important;
    padding: 1.25rem 0.5rem !important;
}
.sidebar.collapsed .sidebar-brand img {
    height: 34px !important;
}
.sidebar.collapsed .sidebar-menu {
    padding: 1rem 0.4rem !important;
}
.sidebar.collapsed .sidebar-menu a {
    justify-content: center !important;
    padding: 0.85rem 0.5rem !important;
    border-radius: 10px;
}
.sidebar.collapsed .sidebar-menu a i {
    margin: 0 !important;
    font-size: 1.35rem !important;
}
.sidebar.collapsed .sidebar-user {
    justify-content: center !important;
    padding: 0.85rem 0.5rem !important;
}

/* ==================== DENTINAL 12 DARK TOP HEADER BAR (IMAGE 2) ==================== */
/* Sol menüyü gizle ve ekranı tam genişliğe yay (Dentinal 12 mantığı) */
.sidebar {
    display: none !important;
}
.app-wrapper {
    display: block !important;
    width: 100% !important;
}
.main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: 100vh;
}

/* Koyu Üst Navigasyon Çubuğu (#0f172a / #132227) */
.main-header {
    background: #0f172a !important; /* Dentinal Dark Slate-900 */
    color: #f8fafc !important;
    border-bottom: 2px solid #334155 !important;
    height: 70px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Berna Sanat Marka & Logo (Görsel 2) */
.webelektra-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    margin-right: 14px;
}
.webelektra-brand img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: #ffffff;
    letter-spacing: 0.6px;
}
.brand-subtitle {
    font-size: 10.5px;
    color: #14b8a6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Görsel 2 Üst Menü Sekmeleri (webelektra-nav) */
.webelektra-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.webelektra-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8 !important; /* Sönük açık gri-mavi */
    text-decoration: none !important;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 4px;
    min-width: 76px;
    text-align: center;
}

.webelektra-tab i {
    font-size: 17px;
    transition: transform 0.2s ease;
    color: #94a3b8;
}

.webelektra-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}
.webelektra-tab:hover i {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Aktif Sekme (Görsel 2 Kasa & Finans'taki Turkuaz Buton Görünümü) */
.webelektra-tab.active {
    background: #0d9488 !important; /* Canlı Turkuaz */
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.4) !important;
}
.webelektra-tab.active i {
    color: #ffffff !important;
}

/* 2. Resimdeki Kırmızı Görüş Bildir / Hızlı Aksiyon Tarzı Buton */
.btn-feedback {
    background: #e11d48 !important; /* Soft gül kırmızısı */
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    transition: all 0.2s !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    white-space: nowrap;
}
.btn-feedback:hover {
    background: #f43f5e !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(225, 29, 72, 0.35);
}

/* 2. Resimdeki Salonda Bekleyen Tarzı Yeşil Rozet */
.waiting-salon-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34d399 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}
.waiting-salon-badge i {
    color: #34d399 !important;
    font-size: 14px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-animation 1.8s infinite;
}
@keyframes pulse-animation {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 2. Resimdeki Dairesel İkon Butonları (Çan & Kalem/Tahsilat) */
.notification-bell, .not-def-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px !important;
    color: #e2e8f0 !important;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
    border: none;
}
.notification-bell:hover, .not-def-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* 2. Resimdeki Kullanıcı Profil Kutusu */
.user-profile {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 7px 14px !important;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.user-profile:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
}

/* Mobil Hamburger Menü Çekmecesi */
.menu-toggle-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}
.mobile-nav-drawer {
    display: none;
    background: #0f172a;
    padding: 14px 18px;
    border-bottom: 2px solid #334155;
    flex-direction: column;
    gap: 8px;
}
.mobile-nav-drawer.active {
    display: flex;
}
.mobile-nav-drawer a {
    color: #94a3b8;
    text-decoration: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-nav-drawer a.active {
    background: #0d9488;
    color: #ffffff !important;
}

/* ==================== SPLIT GELIR - GIDER CARDS (IMAGE 2 DENTINAL STYLE) ==================== */
.split-stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s;
}
.split-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.split-stat-card .amount {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}
.split-stat-card .badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.split-box {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    overflow: hidden;
    height: 100%;
}
.split-box-header {
    padding: 1.15rem 1.4rem;
    background: #fff;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.split-box-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-anthracite);
    margin: 0;
}


