/* ========================================
   Özel Ümit Hastanesi - Süpervisör Takip
   Ana Stil Dosyası
   ======================================== */

:root {
    --primary-color: #0d6efd;
    --sidebar-width: 240px;
}

/* Genel */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    background-color: #f5f6fa;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1rem;
}

/* Kartlar */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Dashboard stat kartları */
.stat-card {
    transition: transform 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tablo stilleri */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 2px;
}

.table td {
    vertical-align: middle;
}

/* Denetim Wizard */
.inspection-wizard .step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.inspection-wizard .step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dee2e6;
    transition: background-color 0.2s;
}

.inspection-wizard .step-dot.active {
    background-color: var(--primary-color);
}

.inspection-wizard .step-dot.completed {
    background-color: #198754;
}

/* Birim kartları (denetim formu) */
.unit-card {
    border-left: 4px solid var(--primary-color);
}

.unit-card.status-normal {
    border-left-color: #198754;
}

.unit-card.status-attention {
    border-left-color: #ffc107;
}

.unit-card.status-critical {
    border-left-color: #dc3545;
}

/* Nöbet durumu */
.shift-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.shift-status .pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #198754;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* Badge'ler */
.badge-severity-low { background-color: #198754; }
.badge-severity-medium { background-color: #ffc107; color: #000; }
.badge-severity-high { background-color: #dc3545; }
.badge-severity-critical { background-color: #212529; }

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

.duty-toggle {
    display: flex;
    gap: 0.5rem;
}

.duty-toggle .btn {
    flex: 1;
    padding: 0.5rem;
}

/* Offline banner */
.offline-banner {
    background-color: #dc3545;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    display: none;
}

body.offline .offline-banner {
    display: block;
}

/* Yazdırma stili */
@media print {
    .navbar, .btn, .pagination, #darkModeToggle {
        display: none !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    body {
        background: white;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .table-responsive {
        font-size: 0.8rem;
    }

    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.25rem; }
    h3, .h3 { font-size: 1.1rem; }
}

/* Scrollbar ince */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Karanlık Mod (temel) */
[data-bs-theme="dark"] {
    --bs-body-bg: #1a1d23;
    --bs-body-color: #e1e1e1;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #1a1d23 !important;
}

[data-bs-theme="dark"] body {
    background-color: #1a1d23;
}

[data-bs-theme="dark"] .card {
    background-color: #212529;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .stat-card .stat-label {
    color: #adb5bd;
}

[data-bs-theme="dark"] .table {
    color: #e1e1e1;
}

[data-bs-theme="dark"] .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
