/* ============================================
   MediCare Hastane Yönetim Sistemi - CSS
   ============================================ */

:root {
    --primary: #1A6FB3;
    --primary-dark: #0D3B6E;
    --primary-light: #E8F4FD;
    --secondary: #2C8FBF;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --info: #3498DB;
    --sidebar-bg: #0D3B6E;
    --sidebar-hover: #1A6FB3;
    --sidebar-active: #1A6FB3;
    --text-dark: #1A2332;
    --text-mid: #4A5568;
    --text-light: #8A9AB0;
    --border: #DDE3ED;
    --bg: #F0F4FA;
    --white: #FFFFFF;
    --shadow: 0 2px 12px rgba(13,59,110,0.10);
    --shadow-md: 0 4px 24px rgba(13,59,110,0.14);
    --radius: 10px;
    --radius-lg: 16px;
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --transition: 0.22s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    z-index: 100;
    overflow: hidden;
}

.sidebar.collapsed { width: 70px; }

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.logo > i {
    font-size: 26px;
    color: #5BC8F5;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.logo-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.3px;
}

.sidebar-toggle {
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.7);
    width: 34px; height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: background var(--transition);
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255,255,255,0.15); }

.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1.2px;
    padding: 16px 20px 6px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-nav ul { list-style: none; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
    cursor: pointer;
}

.nav-link i { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-link span:first-of-type { flex: 1; }

.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}

.nav-link.active {
    color: #fff;
    background: var(--primary);
    border-radius: 0 8px 8px 0;
    margin-right: 12px;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #5BC8F5;
    border-radius: 0 3px 3px 0;
}

.badge {
    background: #E74C3C;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.user-avatar {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.user-details { display: flex; flex-direction: column; white-space: nowrap; }
.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.45); }

/* Collapsed sidebar */
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-link span,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .user-details,
.sidebar.collapsed .badge {
    display: none;
}
.sidebar.collapsed .nav-link { justify-content: center; padding: 11px; }
.sidebar.collapsed .nav-link.active { margin-right: 0; border-radius: 0; }

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition);
}
.main-content.expanded { margin-left: 70px; }

/* ===== TOPBAR ===== */
.topbar {
    background: var(--white);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky; top: 0; z-index: 50;
}

.topbar-left {}
.page-title { font-size: 20px; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.breadcrumb {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-light); margin-top: 3px;
}
.breadcrumb i { font-size: 10px; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    width: 240px;
}
.topbar .search-box i { color: var(--text-light); font-size: 13px; }
.topbar .search-box input {
    border: none; background: none; outline: none;
    font-size: 13px; color: var(--text-dark); width: 100%;
}

.topbar-icons { display: flex; gap: 8px; }
.icon-btn {
    width: 38px; height: 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-mid);
    font-size: 14px;
    position: relative;
    transition: all var(--transition);
}
.icon-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.notif-dot {
    position: absolute;
    top: 7px; right: 7px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid #fff;
}

.topbar-date {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--text-mid);
    background: var(--primary-light);
    border: 1px solid #BDD9F5;
    border-radius: 8px;
    padding: 7px 12px;
}
.topbar-date i { color: var(--primary); }

/* ===== CONTENT AREA ===== */
.content-area { padding: 28px; flex: 1; }

.page { animation: fadeIn 0.25s ease; }
.page.hidden { display: none; }

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

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow);
    border-left: 4px solid;
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-card.blue  { border-color: var(--primary); }
.stat-card.green { border-color: var(--success); }
.stat-card.orange{ border-color: var(--warning); }
.stat-card.red   { border-color: var(--danger); }

.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.blue .stat-icon  { background: #E8F4FD; color: var(--primary); }
.green .stat-icon { background: #EAFAF1; color: var(--success); }
.orange .stat-icon{ background: #FEF9E7; color: var(--warning); }
.red .stat-icon   { background: #FDEDEC; color: var(--danger); }

.stat-info { flex: 1; }
.stat-num  { display: block; font-size: 30px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label{ display: block; font-size: 12px; color: var(--text-light); margin-top: 3px; }

.stat-trend { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.stat-trend i { color: var(--success); }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.dash-card.full-width { grid-column: 1 / -1; }

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.dash-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex; align-items: center; gap: 8px;
}
.dash-card-header h3 i { color: var(--primary); }

.btn-link {
    background: none; border: none;
    color: var(--primary); font-size: 13px;
    cursor: pointer; font-weight: 500;
    padding: 0;
}
.btn-link:hover { text-decoration: underline; }

.dash-card-body { padding: 16px 22px; min-height: 120px; }

.empty-state-small {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 8px;
    padding: 24px; color: var(--text-light); text-align: center;
}
.empty-state-small i { font-size: 28px; opacity: 0.4; }
.empty-state-small p { font-size: 13px; }

/* Mini patient list in dashboard */
.mini-patient {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.mini-patient:last-child { border-bottom: none; }
.mini-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary); font-weight: 700; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mini-info .mini-name { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.mini-info .mini-sub  { font-size: 11px; color: var(--text-light); }
.mini-status { margin-left: auto; }

/* ===== SIMPLE CHART ===== */
.simple-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 120px;
    padding: 10px 0;
}
.chart-bar-wrap {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 5px;
}
.chart-bar {
    width: 100%; border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    transition: height 0.5s ease;
    min-height: 4px;
}
.chart-label { font-size: 10px; color: var(--text-light); }

/* ===== PAGE ACTIONS ===== */
.page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 14px;
    flex-wrap: wrap;
}
.search-filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 14px;
    min-width: 280px;
}
.search-box i { color: var(--text-light); font-size: 13px; }
.search-box input { border: none; background: none; outline: none; font-size: 13px; color: var(--text-dark); width: 100%; }

.filter-select {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-mid);
    background: var(--white);
    cursor: pointer;
    outline: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px;
    border-radius: 8px; border: none;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn i { font-size: 13px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,111,179,0.3); }
.btn-secondary { background: var(--bg); color: var(--text-mid); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1E8449; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #D68910; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #C0392B; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 7px 10px; }

/* ===== TABLE ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: #F7FAFE;
    color: var(--text-mid);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    text-align: left;
}

.data-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #F0F4FA;
    color: var(--text-dark);
    vertical-align: middle;
}

.data-table tbody tr:hover { background: #F7FAFE; }
.data-table tbody tr:last-child td { border-bottom: none; }

.empty-row { text-align: center; }
.empty-state {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; padding: 60px 20px; color: var(--text-light);
}
.empty-state i { font-size: 48px; opacity: 0.3; }
.empty-state h3 { font-size: 16px; color: var(--text-mid); }
.empty-state p { font-size: 13px; }

/* Status badges */
.status-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}
.status-ayakta  { background: #E8F8F0; color: #1E8449; }
.status-yatan   { background: #EBF5FB; color: #1A6FB3; }
.status-kontrol { background: #FEF9E7; color: #D68910; }
.status-acil    { background: #FDEDEC; color: #C0392B; }
.status-bekliyor { background: #FEF9E7; color: #D68910; }
.status-tamamlandi { background: #E8F8F0; color: #1E8449; }
.status-iptal   { background: #FDEDEC; color: #C0392B; }

.action-btns { display: flex; gap: 6px; align-items: center; }

/* ===== DOKTOR GRID ===== */
.doktor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.doktor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.doktor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.doktor-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #BDD9F5);
    color: var(--primary); font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    border: 3px solid var(--primary-light);
}

.doktor-name { font-size: 15px; font-weight: 700; color: var(--text-dark); }
.doktor-spec {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
}
.doktor-info { font-size: 12px; color: var(--text-light); }
.doktor-days { font-size: 11px; color: var(--text-mid); }
.doktor-actions { display: flex; gap: 8px; margin-top: 6px; }

/* ===== RAPORLAR ===== */
.raporlar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rapor-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex; gap: 18px;
    transition: transform var(--transition);
}
.rapor-card:hover { transform: translateY(-2px); }

.rapor-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.rapor-icon.blue  { background: #E8F4FD; color: var(--primary); }
.rapor-icon.green { background: #EAFAF1; color: var(--success); }
.rapor-icon.orange{ background: #FEF9E7; color: var(--warning); }
.rapor-icon.red   { background: #FDEDEC; color: var(--danger); }

.rapor-info { flex: 1; }
.rapor-info h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.rapor-info p  { font-size: 12px; color: var(--text-light); margin-bottom: 14px; }

.rapor-stats { display: flex; gap: 24px; }
.rapor-stat { display: flex; flex-direction: column; align-items: center; }
.rapor-stat span { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.rapor-stat label { font-size: 10px; color: var(--text-light); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

.kan-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.kan-item {
    background: var(--bg); border-radius: 8px;
    padding: 6px 12px; font-size: 12px;
    display: flex; gap: 6px; align-items: center;
}
.kan-item strong { color: var(--primary-dark); }

.bolum-stats { display: flex; flex-direction: column; gap: 8px; }
.bolum-item { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.bolum-bar-wrap { flex: 1; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.bolum-bar { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.5s ease; }
.bolum-count { font-weight: 700; color: var(--primary); min-width: 20px; text-align: right; }

/* ===== AYARLAR ===== */
.ayarlar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
}
.ayar-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
}
.ayar-card h3 {
    font-size: 16px; font-weight: 700;
    color: var(--primary-dark);
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.required { color: var(--danger); }

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,111,179,0.1);
}
textarea.form-control { resize: vertical; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-tabs {
    display: flex; gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}
.form-tab {
    background: none; border: none;
    padding: 10px 20px;
    font-size: 13px; font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}
.form-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.form-tab:hover { color: var(--primary); }

.form-tab-content { display: none; }
.form-tab-content.active { display: block; }

.day-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.day-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px; font-weight: 600;
    color: var(--text-mid);
    transition: all var(--transition);
}
.day-btn input { display: none; }
.day-btn:has(input:checked) { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(13,59,110,0.4);
    backdrop-filter: blur(3px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.modal.large { max-width: 700px; }
.modal.small { max-width: 420px; }

.modal-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--primary-dark);
}
.modal-header h2 {
    font-size: 16px; font-weight: 700;
    color: #fff;
    display: flex; align-items: center; gap: 10px;
}
.modal-header h2 i { color: #5BC8F5; }
.modal-header.danger { background: var(--danger); }
.modal-header.danger h2 i { color: #fff; }

.modal-close {
    background: rgba(255,255,255,0.15); border: none;
    color: #fff; font-size: 20px;
    width: 32px; height: 32px;
    border-radius: 6px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.25); }

.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: #FAFBFD;
}

.confirm-warn {
    font-size: 12px; color: var(--danger);
    margin-top: 8px; font-weight: 600;
}

/* ===== PATIENT DETAIL ===== */
.detail-section { margin-bottom: 20px; }
.detail-section h4 {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--primary); margin-bottom: 12px;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item label { font-size: 11px; color: var(--text-light); display: block; margin-bottom: 2px; }
.detail-item span { font-size: 13px; font-weight: 600; color: var(--text-dark); }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 14px 18px;
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 500;
    min-width: 280px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.info    { border-color: var(--primary); }
.toast.warning { border-color: var(--warning); }
.toast i { font-size: 16px; }
.toast.success i { color: var(--success); }
.toast.error   i { color: var(--danger); }
.toast.info    i { color: var(--primary); }
.toast.warning i { color: var(--warning); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .raporlar-grid { grid-template-columns: 1fr; }
    .ayarlar-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { width: 70px; }
    .main-content { margin-left: 70px; }
    .sidebar .logo-text, .sidebar .nav-link span,
    .sidebar .nav-section-title, .sidebar .user-details { display: none; }
    .sidebar .nav-link { justify-content: center; padding: 11px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .topbar .search-box { display: none; }
    .content-area { padding: 16px; }
}
