        :root {
            --primary: #6366f1;
            --primary-dark: #4f46e5;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --gray-light: #f3f4f6;
            --gray: #e5e7eb;
            --gray-dark: #9ca3af;
            --text-dark: #1f2937;
            --text-light: #6b7280;
            --border: #e5e7eb;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background: #f9fafb;
            color: var(--text-dark);
        }

        .navbar {
            background: white;
            height: 80px;
            padding: 0 30px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
            position: sticky;
            top: 0;
            z-index: 50;
            display: flex;
            align-items: center;
        }

        .navbar-content {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 20px;
            font-weight: 800;
            color: var(--text-dark);
        }

        .navbar-actions {
            display: flex;
            gap: 10px;
        }

        .container {
            display: flex;
        }

        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }

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

        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
        }

        .btn-secondary {
            background: var(--gray-light);
            color: var(--text-dark);
            border: 2px solid var(--border);
        }

        .btn-secondary:hover {
            background: white;
            border-color: var(--primary);
        }

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

        .btn-success:hover {
            opacity: 0.9;
        }

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

        .btn-danger:hover {
            opacity: 0.9;
        }

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

        .btn-warning:hover {
            opacity: 0.9;
        }

        .btn-icon {
            padding: 10px 15px;
            font-size: 16px;
        }

        .sidebar {
            background: white;
            width: 280px;
            min-height: calc(100vh - 80px);
            max-height: calc(100vh - 80px);
            padding: 15px 0;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
            position: fixed;
            left: 0;
            top: 80px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--gray) transparent;
        }

        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .sidebar::-webkit-scrollbar-thumb {
            background: var(--gray);
            border-radius: 4px;
        }

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

        .sidebar-menu li {
            margin: 3px 0;
        }

        .sidebar-menu a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 20px;
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
            border-left: 4px solid transparent;
        }

        .sidebar-menu a:hover {
            background: var(--gray-light);
            color: var(--primary);
            border-left-color: var(--primary);
        }

        .sidebar-menu a.active {
            background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
            color: var(--primary);
            border-left-color: var(--primary);
            font-weight: 700;
        }

        .main-content {
            margin-left: 280px;
            padding: 30px;
            min-height: calc(100vh - 80px);
            width: 100%;
        }

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

        .page-title {
            font-size: 32px;
            font-weight: 800;
            color: var(--text-dark);
        }

        .page-subtitle {
            font-size: 14px;
            color: var(--text-light);
            margin-top: 5px;
        }

        /* Montaj Raporlar / Satış Raporlar: tüm sayfa içeriği (kartlar, grafikler, yazılar) orantılı
           olarak %70 ölçeğe küçültülür — duvara asılı bir ekrandan uzaktan izlemeye uygun, sıkışık
           ama okunaklı bir görünüm sağlar. */
        #stock-reports-page,
        #sales-reports-page {
            zoom: 0.7;
        }

        .card {
            background: white;
            border-radius: 12px;
            padding: 16px 18px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 16px;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--gray-light);
        }

        .team-mgmt-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            align-items: end;
            padding: 15px;
            border-radius: 8px;
        }

        .card-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-dark);
        }

        form {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

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

        .form-group.full {
            grid-column: 1 / -1;
        }

        label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        input, textarea, select {
            padding: 12px 15px;
            border: 2px solid var(--gray);
            border-radius: 8px;
            font-size: 14px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
        }

        input:focus, textarea:focus, select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
        }

        textarea {
            resize: vertical;
            min-height: 100px;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 100;
            align-items: center;
            justify-content: center;
            overflow: auto;
            padding: 20px;
        }

        .modal.show {
            display: flex;
        }

        /* ================================================================
           MODAL BOYUTLANDIRMA STANDARDI — yeni bir modal eklerken/düzenlerken
           MUTLAKA bu kurallara göre bir max-width belirlenmeli, asla varsayılan
           (1800px) bırakılmamalı ya da rastgele küçük bir değer (örn. 400-500px)
           kullanılmamalı. İçerik miktarına göre:
             - Basit, tek sütun, 3-4 alanlı formlar (örn. onay/tek metin girişi):  480-550px
             - Orta karmaşıklıkta formlar (2 sütunlu grid, 5-8 alan):              650-750px
             - Çok alanlı / çoklu bölümlü formlar (banka bilgisi, çoklu klima vb): 900-1000px
             - Tablo/liste + form birlikte olan detay pencereleri:                1100-1800px (varsayılan)
           Amaç: pencere içeriği TEK SEFERDE, yatay kaydırmaya gerek kalmadan
           görünsün. max-height zaten 95vh + overflow-y:auto ile dikeyde
           otomatik kaydırma sağlıyor; asıl risk hep YATAY dar kalmaktır.
           ================================================================ */
        .modal-content {
            background: white;
            border-radius: 12px;
            padding: 30px;
            max-width: 1800px;
            width: 100%;
            max-height: 95vh;
            overflow-y: auto;
            animation: slideIn 0.3s ease;
            margin: auto;
        }

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

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--gray-light);
        }

        .modal-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 28px;
            color: var(--text-light);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            color: var(--text-dark);
        }

        .form-actions {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 25px;
            grid-column: 1 / -1;
        }

        .modal-body {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            margin-bottom: 20px;
        }

        .modal-body-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .calendar-container {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .calendar-nav {
            display: flex;
            gap: 10px;
        }

        .calendar-nav button {
            padding: 8px 15px;
            border: 2px solid var(--border);
            background: white;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .calendar-nav button:hover {
            border-color: var(--primary);
            color: var(--primary);
        }

        .calendar-month {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-dark);
            min-width: 150px;
            text-align: center;
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 8px;
            margin-bottom: 20px;
        }

        .day-header {
            padding: 10px;
            text-align: center;
            font-weight: 700;
            color: var(--primary);
            font-size: 12px;
            text-transform: uppercase;
        }

        .calendar-day {
            aspect-ratio: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            border: 2px solid var(--gray);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            position: relative;
            min-height: 80px;
            height: auto;
            padding: 6px;
            background: white;
            overflow: visible;
        }

        /* Randevusu olan bir hücrede kare oranını zorlamıyoruz; içerik (tüm müşteri isimleri)
           kadar büyüyebilsin diye. Randevusuz hücreler kare kalmaya devam eder. */
        .calendar-day.with-appointments {
            aspect-ratio: auto;
        }

        .calendar-day:hover {
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.05);
            transform: translateY(-2px);
        }

        .calendar-day.other-month {
            color: var(--gray-dark);
            background: var(--gray-light);
        }

        .calendar-day.selected {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
        }

        .calendar-day.selected.with-appointments {
            background: var(--success);
            border-color: var(--success);
        }

        .calendar-day.today {
            border: 3px solid var(--warning);
            font-weight: 800;
        }

        .calendar-day.sunday:not(.selected) {
            background: rgba(239, 68, 68, 0.08);
            border-color: rgba(239, 68, 68, 0.35);
        }

        .calendar-day.holiday:not(.selected) {
            background: rgba(245, 158, 11, 0.18);
            border-color: var(--warning);
        }

        .calendar-day .holiday-label {
            font-size: 8px;
            font-weight: 700;
            text-align: center;
            color: #b45309;
            line-height: 1.2;
            margin-top: 2px;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .calendar-day.selected .holiday-label {
            color: rgba(255, 255, 255, 0.9);
        }

        .calendar-day .day-number {
            font-size: 18px;
            margin-bottom: 4px;
        }

        .calendar-day .day-appointments {
            font-size: 10px;
            text-align: center;
            color: var(--text-light);
        }

        .calendar-day.selected .day-appointments {
            color: white;
        }

        .day-mini-appt-list {
            width: 100%;
            overflow: visible;
            margin-top: 2px;
        }

        .day-mini-appt {
            font-size: 8px;
            font-weight: 600;
            text-align: left;
            line-height: 1.35;
            white-space: normal;
            word-break: break-word;
            overflow: visible;
            color: #444;
        }

        .day-mini-appt.montaj { color: var(--primary); }
        .day-mini-appt.bakim { color: var(--success); }
        .day-mini-appt.more { color: var(--text-light); font-style: italic; }

        /* Haftalık / 2 Haftalık takvim görünümü: her gün geniş bir satır olarak gösterilir,
           böylece tüm müşteri isimleri kısaltılmadan, rahatça okunabilir. */
        .calendar-week-row {
            display: flex;
            gap: 16px;
            padding: 14px 18px;
            border: 2px solid var(--gray);
            border-radius: 10px;
            margin-bottom: 10px;
            background: white;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .calendar-week-row:hover {
            border-color: var(--primary);
            background: rgba(99, 102, 241, 0.03);
        }

        .calendar-week-row.today {
            border: 3px solid var(--warning);
        }

        .calendar-week-row.sunday {
            background: rgba(239, 68, 68, 0.05);
        }

        .calendar-week-row.holiday {
            background: rgba(245, 158, 11, 0.1);
        }

        .calendar-week-row-date {
            flex: 0 0 100px;
            text-align: center;
            border-right: 2px solid var(--gray-light);
            padding-right: 16px;
        }

        .calendar-week-row-appts {
            flex: 1;
            min-width: 0;
        }

        .calendar-week-row-appts .day-mini-appt-list {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .calendar-week-row-appts .day-mini-appt {
            font-size: 13px;
            line-height: 1.5;
            white-space: normal;
        }

        .calendar-day.selected .day-mini-appt,
        .calendar-day.selected .day-mini-appt.montaj,
        .calendar-day.selected .day-mini-appt.bakim,
        .calendar-day.selected .day-mini-appt.more {
            color: rgba(255, 255, 255, 0.92);
        }

        .day-appointments-list {
            max-height: 300px;
            overflow-y: auto;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 2px solid var(--gray-light);
        }

        .appointment-item {
            background: var(--gray-light);
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 8px;
            border-left: 4px solid var(--warning);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .appointment-item:hover {
            background: rgba(99, 102, 241, 0.1);
            border-left-color: var(--primary);
        }

        .appointment-item strong {
            color: var(--text-dark);
            display: block;
            margin-bottom: 4px;
        }

        .appointment-item span {
            color: var(--text-light);
        }

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

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

        thead {
            background: var(--gray-light);
        }

        th {
            padding: 15px;
            text-align: left;
            font-weight: 700;
            color: var(--text-dark);
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        td {
            padding: 15px;
            border-bottom: 1px solid var(--border);
            color: var(--text-light);
        }

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

        /* Stok Takip listesi için: satırları sıkıştırıp daha fazlasının aynı anda (kaydırmadan)
           görünmesini sağlar, ama metni uzaktan okunabilir tutmak için yazı tipini küçültmez,
           kalınlaştırır ve satır aralığını azaltır. */
        .table-compact th {
            padding: 7px 10px;
            font-size: 11px;
        }

        .table-compact td {
            padding: 4px 10px;
            font-size: 14px;
            font-weight: 600;
            line-height: 1.15;
        }

        .table-compact select,
        .table-compact input {
            padding: 4px 6px !important;
            font-size: 13px !important;
            font-weight: 700 !important;
        }

        .table-compact button {
            padding: 5px 10px !important;
            font-size: 12px !important;
        }

        .status-badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-planned {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary);
        }

        .status-progress {
            background: rgba(245, 158, 11, 0.1);
            color: var(--warning);
        }

        .status-completed {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
        }

        .records-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .record-item {
            background: white;
            border-radius: 8px;
            padding: 10px 14px;
            border-left: 4px solid var(--primary);
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 12px;
            align-items: center;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            transition: all 0.2s ease;
        }

        .record-item:hover {
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
        }

        .record-item.completed {
            border-left-color: var(--success);
        }

        .record-item.progress {
            border-left-color: var(--warning);
        }

        .record-info {
            display: grid;
            gap: 4px;
        }

        .record-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .record-detail {
            font-size: 12.5px;
            font-weight: 600;
            color: var(--text-light);
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 2px 14px;
        }

        .record-detail strong {
            color: var(--text-dark);
        }

        .record-actions {
            display: flex;
            flex-direction: column;
            gap: 5px;
            align-items: flex-end;
        }

        .toast {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background: white;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
            z-index: 200;
            animation: slideUp 0.3s ease;
            border-left: 4px solid var(--primary);
        }

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

        .toast.success {
            border-left-color: var(--success);
        }

        .toast.error {
            border-left-color: var(--danger);
        }

        .toast.warning {
            border-left-color: var(--warning);
        }

        .empty-state {
            text-align: center;
            padding: 50px 20px;
            color: var(--text-light);
        }

        .empty-state h3 {
            font-size: 18px;
            color: var(--text-dark);
            margin-bottom: 10px;
        }

        .schedule-panel {
            background: var(--gray-light);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .schedule-panel h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 15px;
        }

        .schedule-info {
            display: grid;
            gap: 10px;
        }

        .schedule-info-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px;
            background: white;
            border-radius: 8px;
            border-left: 3px solid var(--primary);
        }

        .schedule-info-item strong {
            color: var(--text-dark);
            min-width: 120px;
        }

        .schedule-info-item span {
            color: var(--text-light);
        }

        .team-status {
            background: var(--gray-light);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border-left: 4px solid var(--warning);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .team-status.full {
            border-left-color: var(--danger);
            opacity: 0.6;
        }

        .team-status-info {
            flex: 1;
        }

        .team-status-bar {
            background: white;
            border-radius: 4px;
            height: 6px;
            overflow: hidden;
            margin-top: 8px;
        }

        .team-status-fill {
            background: var(--warning);
            height: 100%;
            transition: all 0.3s ease;
        }

        .team-status.full .team-status-fill {
            background: var(--danger);
        }

        .team-status-actions {
            display: flex;
            gap: 8px;
            margin-left: 15px;
        }

        .team-status-actions input {
            flex: 1;
            padding: 8px 12px;
            border-radius: 6px;
            border: 2px solid var(--border);
            font-size: 13px;
        }

        .team-status-actions button {
            padding: 8px 15px;
            font-size: 12px;
        }

        .filter-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            align-items: center;
        }

        .filter-container input {
            flex: 1;
            max-width: 300px;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }

        .dashboard-card {
            background: white;
            border-radius: 10px;
            padding: 14px 16px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            border-top: 4px solid var(--primary);
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .dashboard-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
        }

        .dashboard-card h3 {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-light);
            text-transform: uppercase;
            margin-bottom: 6px;
        }

        .dashboard-card .value {
            font-size: 30px;
            font-weight: 800;
            color: var(--text-dark);
        }

        .dashboard-card .subtitle {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-light);
            margin-top: 5px;
        }

        .dashboard-card.success {
            border-top-color: var(--success);
        }

        .dashboard-card.success .value {
            color: var(--success);
        }

        .dashboard-card.warning {
            border-top-color: var(--warning);
        }

        .dashboard-card.warning .value {
            color: var(--warning);
        }

        .dashboard-card.danger {
            border-top-color: var(--danger);
        }

        .dashboard-card.danger .value {
            color: var(--danger);
        }

        .team-appointments-section {
            background: white;
            border-radius: 10px;
            padding: 12px 14px;
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
            margin-bottom: 12px;
        }

        .team-appointments-section h3 {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 8px;
            padding-bottom: 6px;
            border-bottom: 2px solid var(--gray-light);
        }

        .team-appointments-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .team-appointment-item.bakim-item {
            border-left-color: var(--success) !important;
            background: rgba(16, 185, 129, 0.08);
        }

        .record-item.bakim-item {
            border-left-color: var(--success) !important;
            background: rgba(16, 185, 129, 0.06);
        }

        .appointment-item.bakim-item {
            border-left-color: var(--success) !important;
            background: rgba(16, 185, 129, 0.06);
        }

        .team-appointment-item {
            display: grid;
            grid-template-columns: 150px 200px 150px 1fr auto;
            gap: 10px;
            padding: 6px 10px;
            background: var(--gray-light);
            border-radius: 6px;
            border-left: 4px solid var(--primary);
            align-items: center;
            font-size: 12.5px;
            font-weight: 600;
            transition: outline 0.15s ease, opacity 0.15s ease;
        }

        .team-appointment-item[draggable="true"] {
            cursor: grab;
        }

        .team-appointment-item.dragging {
            opacity: 0.5;
        }

        .team-appointment-item.drag-over {
            outline: 3px dashed var(--primary);
            outline-offset: -3px;
            background: rgba(99, 102, 241, 0.08);
        }

        .team-appointment-item strong {
            color: var(--text-dark);
            display: block;
        }

        .team-appointment-item span {
            color: var(--text-light);
        }

        .analytics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin-bottom: 25px;
        }

        .analytics-card {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .analytics-card:hover {
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
            transform: translateY(-3px);
        }

        .analytics-card h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--gray-light);
        }

        .analytics-item {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 20px;
            padding: 15px;
            background: var(--gray-light);
            border-radius: 8px;
            margin-bottom: 10px;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .analytics-item:hover {
            background: rgba(99, 102, 241, 0.1);
        }

        .analytics-item-info {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .analytics-item-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .analytics-item-progress {
            display: flex;
            gap: 8px;
            font-size: 12px;
            color: var(--text-light);
        }

        .analytics-item-count {
            font-size: 24px;
            font-weight: 800;
            color: var(--primary);
            min-width: 60px;
            text-align: right;
        }

        .progress-bar {
            width: 100%;
            height: 8px;
            background: white;
            border-radius: 4px;
            overflow: hidden;
            margin-top: 5px;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--success));
            transition: width 0.3s ease;
        }

        /* DAY DETAIL MODAL STYLES */
        .day-detail-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 25px;
            border-radius: 12px;
            margin-bottom: 25px;
        }

        .day-detail-title {
            font-size: 24px;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .day-detail-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        .day-detail-stat {
            background: rgba(255, 255, 255, 0.2);
            padding: 12px 15px;
            border-radius: 8px;
            font-size: 14px;
        }

        .day-detail-stat strong {
            display: block;
            font-size: 20px;
            margin-bottom: 5px;
        }

        .time-slots-container {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            margin-bottom: 25px;
        }

        .time-slots-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--gray-light);
        }

        .time-slots-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 12px;
            margin-bottom: 20px;
        }

        .time-slot {
            padding: 12px;
            border-radius: 8px;
            text-align: center;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid var(--gray);
            position: relative;
            min-height: 70px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .time-slot.available {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border-color: var(--success);
        }

        .time-slot.available:hover {
            background: var(--success);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
        }

        .time-slot.booked {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border-color: var(--danger);
            cursor: not-allowed;
            opacity: 1;
        }

        .time-slot.selected {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
        }

        .time-slot-time {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .time-slot-status {
            font-size: 11px;
            font-weight: 600;
        }

        .time-slot-teams {
            font-size: 10px;
            margin-top: 4px;
            padding: 4px;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            max-height: 40px;
            overflow-y: auto;
        }

        .time-slot-teams strong {
            display: block;
            word-break: break-word;
            text-align: center;
        }

        .day-appointments-section {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .day-appointments-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--gray-light);
        }

        .day-appointment-card {
            background: var(--gray-light);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 12px;
            border-left: 4px solid var(--primary);
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 15px;
            align-items: start;
        }

        .day-appointment-card.completed {
            border-left-color: var(--success);
        }

        .day-appointment-card.progress {
            border-left-color: var(--warning);
        }

        .day-appointment-card.bakim-item {
            border-left-color: var(--success) !important;
            background: rgba(16, 185, 129, 0.08);
        }

        .day-appointment-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .day-appointment-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .day-appointment-detail {
            font-size: 13px;
            color: var(--text-light);
            display: grid;
            gap: 4px;
        }

        .day-appointment-detail strong {
            color: var(--text-dark);
        }

        .day-appointment-actions {
            display: flex;
            gap: 8px;
        }

        .day-appointment-actions button {
            padding: 8px 12px;
            font-size: 12px;
        }

        /* DETAIL MODAL - ANALIZ VİEW */
        .detail-modal-content {
            background: white;
            border-radius: 12px;
            padding: 30px;
            max-width: 1200px;
            width: 100%;
            max-height: 95vh;
            overflow-y: auto;
        }

        .detail-modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--gray-light);
        }

        .detail-modal-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .detail-modal-close {
            background: none;
            border: none;
            font-size: 32px;
            color: var(--text-light);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .detail-modal-close:hover {
            color: var(--text-dark);
        }

        .detail-section {
            margin-bottom: 30px;
        }

        .detail-section-title {
            font-size: 16px;
            font-weight: 700;
            color: white;
            background: var(--primary);
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .detail-section-title.success {
            background: var(--success);
        }

        .detail-section-title.warning {
            background: var(--warning);
        }

        .detail-section-title.danger {
            background: var(--danger);
        }

        .detail-item {
            background: var(--gray-light);
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 8px;
            border-left: 4px solid var(--primary);
            display: grid;
            grid-template-columns: 150px 1fr;
            gap: 15px;
        }

        .detail-item.success {
            border-left-color: var(--success);
        }

        .detail-item.warning {
            border-left-color: var(--warning);
        }

        .detail-item.danger {
            border-left-color: var(--danger);
        }

        .detail-item strong {
            color: var(--text-dark);
            font-weight: 600;
        }

        .detail-item span {
            color: var(--text-light);
        }

        .detail-count {
            text-align: center;
            padding: 20px;
            background: rgba(99, 102, 241, 0.1);
            border-radius: 8px;
            margin-bottom: 15px;
        }

        .detail-count .value {
            font-size: 48px;
            font-weight: 800;
            color: var(--primary);
            display: block;
        }

        .detail-count .label {
            font-size: 14px;
            color: var(--text-light);
            font-weight: 600;
        }

        .detail-count.success {
            background: rgba(16, 185, 129, 0.1);
        }

        .detail-count.success .value {
            color: var(--success);
        }

        .detail-count.warning {
            background: rgba(245, 158, 11, 0.1);
        }

        .detail-count.warning .value {
            color: var(--warning);
        }

        .detail-count.danger {
            background: rgba(239, 68, 68, 0.1);
        }

        .detail-count.danger .value {
            color: var(--danger);
        }

        /* TIME SLOT STYLING FOR APPOINTMENT MODAL */
        .time-slot-button {
            padding: 12px 15px;
            border: 2px solid var(--gray);
            background: white;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
            text-align: center;
        }

        .time-slot-button.available {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border-color: var(--success);
        }

        .time-slot-button.available:hover {
            background: var(--success);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
        }

        .time-slot-button.booked {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border-color: var(--danger);
            cursor: not-allowed;
            opacity: 0.6;
            text-decoration: line-through;
        }

        .time-slot-button.selected {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
        }

        @media (max-width: 1024px) {
            .sidebar {
                width: 80px;
                padding: 15px 0;
                max-height: calc(100vh - 80px);
                overflow-y: auto;
            }

            .sidebar-menu a {
                padding: 9px 10px;
                justify-content: center;
                font-size: 12px;
            }

            .sidebar-menu li {
                margin: 4px 0;
            }

            .sidebar-menu a span {
                display: none;
            }

            .main-content {
                margin-left: 80px;
                padding: 20px;
            }

            form {
                grid-template-columns: 1fr;
            }

            .modal-body {
                grid-template-columns: 1fr;
            }

            .team-appointment-item {
                grid-template-columns: 1fr;
            }

            .analytics-grid {
                grid-template-columns: 1fr;
            }

            .time-slots-grid {
                grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            }

            .day-detail-info {
                grid-template-columns: 1fr;
            }

            .day-appointment-card {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                width: 56px;
                padding: 10px 0;
                max-height: calc(100vh - 80px);
                display: flex;
                flex-direction: column;
                overflow-y: auto;
            }

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

            .sidebar-menu li {
                margin: 2px 0;
            }

            .sidebar-menu a {
                padding: 8px 4px;
                justify-content: center;
                font-size: 16px;
            }

            .sidebar-menu a span {
                display: none;
            }

            .main-content {
                margin-left: 56px;
            }

            .navbar-content {
                flex-direction: column;
                gap: 15px;
            }

            .page-header {
                flex-direction: column;
                gap: 15px;
            }

            .navbar-actions {
                flex-wrap: wrap;
                justify-content: center;
            }

            .record-item {
                grid-template-columns: 1fr;
            }

            .record-actions {
                flex-direction: row;
                align-items: center;
            }

            .calendar-grid {
                grid-template-columns: repeat(7, 1fr);
                gap: 6px;
            }

            .calendar-day {
                min-height: 60px;
                padding: 6px;
            }

            .calendar-day .day-number {
                font-size: 14px;
            }

            .modal-content {
                padding: 20px;
                max-width: 100%;
            }

            .filter-container {
                flex-direction: column;
            }

            .filter-container input {
                max-width: 100%;
            }

            .dashboard-grid {
                grid-template-columns: 1fr;
            }

            .team-appointment-item {
                grid-template-columns: 1fr;
            }

            .analytics-grid {
                grid-template-columns: 1fr;
            }

            .time-slots-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .day-detail-info {
                grid-template-columns: 1fr;
            }

            .day-appointment-card {
                grid-template-columns: 1fr;
            }

            .day-appointment-actions {
                flex-direction: column;
            }
        }
