/* =============================================
   HBYS - Ana Stil Dosyasi
   Kurumsal Hastane Arayuzu
   ============================================= */

:root {
    --primary: #1a5276;
    --primary-light: #2471a3;
    --primary-dark: #0e3a5c;
    --secondary: #148f77;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --sidebar-width: 260px;
    --topbar-height: 56px;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    background: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #333;
}

/* ---- TOPBAR ---- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.topbar-brand i {
    font-size: 22px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-branch {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.topbar-user .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.topbar a:hover {
    color: #ddd;
}

/* ---- SIDEBAR ---- */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    z-index: 999;
    padding: 10px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu .menu-header {
    padding: 12px 20px 6px;
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #555;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: #f5f7fa;
    color: var(--primary);
}

.sidebar-menu a.active {
    background: #eaf2f8;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-menu a i {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

/* ---- MAIN CONTENT ---- */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 20px;
    min-height: calc(100vh - var(--topbar-height));
}

/* ---- PAGE HEADER ---- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
}

.page-header .breadcrumb {
    margin: 0;
    font-size: 13px;
}

/* ---- CARDS ---- */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 16px;
}

/* ---- STAT CARDS ---- */
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-card .stat-icon.bg-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.stat-card .stat-icon.bg-green { background: linear-gradient(135deg, #27ae60, #219a52); }
.stat-card .stat-icon.bg-orange { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-card .stat-icon.bg-red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stat-card .stat-icon.bg-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.stat-card .stat-icon.bg-teal { background: linear-gradient(135deg, #1abc9c, #16a085); }

.stat-card .stat-info h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.stat-card .stat-info p {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0;
}

/* ---- TABLES ---- */
.table {
    font-size: 13.5px;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: #f0f7ff;
}

/* ---- FORMS ---- */
.form-label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.form-control, .form-select {
    font-size: 13.5px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(26, 82, 118, 0.15);
}

/* ---- BUTTONS ---- */
.btn {
    font-size: 13.5px;
    border-radius: 6px;
    padding: 7px 16px;
    font-weight: 500;
}

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

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

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

.btn-sm {
    padding: 4px 10px;
    font-size: 12.5px;
}

/* ---- BADGES ---- */
.badge {
    font-weight: 500;
    font-size: 12px;
    padding: 4px 8px;
}

/* ---- FILTERS ---- */
.filter-bar {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.filter-bar .row {
    align-items: end;
}

/* ---- LOGIN PAGE ---- */
.login-page {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 420px;
    max-width: 95%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .login-logo i {
    font-size: 48px;
    color: var(--primary);
}

.login-card .login-logo h2 {
    font-size: 20px;
    color: var(--primary-dark);
    margin: 10px 0 5px;
    font-weight: 700;
}

.login-card .login-logo p {
    font-size: 13px;
    color: #888;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

/* ---- MUAYENE TABS ---- */
.exam-tabs .nav-link {
    color: #666;
    font-weight: 500;
    font-size: 13.5px;
    padding: 10px 16px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
}

.exam-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* ---- PRINTING ---- */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin: 0; padding: 10px; }
    body { font-size: 12px; }
}

/* ---- MISC ---- */
.text-primary-dark { color: var(--primary-dark); }
.cursor-pointer { cursor: pointer; }
.w-100 { width: 100%; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}
