/* 
 * Doria Vardiya ve İzin Yönetim Sistemi - Premium CSS Tasarımı
 * Göz Alıcı Lüks Otel Konsepti (Dark-Navy, Soft-Gold & Turquoise)
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #f3f7fb; /* Bodrum Esintili Temiz Açık Mavi-Beyaz */
    --bg-secondary: #ffffff; /* Akdeniz Mimari Beyazı */
    --bg-glass: rgba(255, 255, 255, 0.85); /* Cam Görünümlü Panel Arka Planı */
    --bg-glass-hover: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(15, 23, 42, 0.06); /* Hafif Geçişli Kenarlıklar */
    --accent-navy: #014c7a; /* Doria Kurumsal Koyu Lacivert */
    --accent-navy-hover: #013555;
    --accent-teal: #0169a8; /* Doria Ege Mavisi */
    --accent-teal-hover: #015589;
    --accent-gold: #d4af37; /* Doria Altın Sarısı */
    --accent-gold-hover: #b8952b;
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #64748b; /* Slate 500 */
    --sidebar-width: 260px;
    --card-shadow: 0 10px 40px -10px rgba(11, 34, 64, 0.06), 0 2px 20px -5px rgba(11, 34, 64, 0.03);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Vardiya Renk Kodları (Light Mode - Bodrum Teması) */
    --shift-morning: rgba(1, 105, 168, 0.06); /* Doria Ege Mavisi */
    --shift-morning-text: #0169a8;
    --shift-evening: rgba(212, 175, 55, 0.1); /* Doria Altın Sarısı */
    --shift-evening-text: #b8952b;
    --shift-night: rgba(99, 102, 241, 0.08); /* Derin Deniz Gece İndigosu */
    --shift-night-text: #4f46e5;
    --shift-off: rgba(148, 163, 184, 0.12);
    --shift-off-text: #475569;
    --shift-annual: rgba(16, 185, 129, 0.08); /* Çam Yeşili / Yıllık İzin */
    --shift-annual-text: #059669;
    --shift-comp: rgba(245, 158, 11, 0.08); /* Bodrum Güneşi Turuncusu */
    --shift-comp-text: #d97706;
    --shift-sick: rgba(239, 68, 68, 0.08); /* Mercan Kırmızısı / Raporlu */
    --shift-sick-text: #dc2626;
    --shift-holiday: rgba(100, 116, 139, 0.08);
    --shift-holiday-text: #475569;
    --shift-holiday-work: rgba(217, 119, 6, 0.1);
    --shift-holiday-work-text: #b45309;
}

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

body {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(13, 148, 136, 0.04) 0px, transparent 40%),
        radial-gradient(at 50% 100%, rgba(197, 168, 92, 0.03) 0px, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scrollbar Tasarımı */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(11, 34, 64, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 34, 64, 0.2);
}

/* 1. GİRİŞ SAYFASI (LOGIN PAGE) */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    background-color: #030d1a;
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 148, 136, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, #030d1a 0px, transparent 70%),
        radial-gradient(at 50% 100%, rgba(197, 168, 92, 0.06) 0px, transparent 50%);
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(3, 13, 26, 0.35);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.login-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.login-logo i {
    font-size: 2.8rem;
    color: var(--accent-teal);
    margin-right: 12px;
    text-shadow: 0 0 20px rgba(13, 148, 136, 0.2);
}

.login-logo span {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-navy) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-navy);
    margin-bottom: 8px;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 22px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--accent-navy);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.input-container {
    position: relative;
}

.input-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    background: rgba(11, 34, 64, 0.02);
    border: 1px solid rgba(11, 34, 64, 0.08);
    border-radius: 12px;
    padding: 14px 16px 14px 46px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-teal);
    background: #ffffff;
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.15);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #0c7a70 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.4);
    background: linear-gradient(135deg, var(--accent-teal-hover) 0%, var(--accent-teal) 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(13, 148, 136, 0.05);
    border-color: var(--accent-teal);
}

/* 2. UYGULAMA PANEL DÜZENİ (DASHBOARD LAYOUT) */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Yan Menü (Sidebar) */
.sidebar {
    width: var(--sidebar-width);
    background: #061427; /* Doria Ege Derin Laciverti Arka Plan */
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-brand i {
    font-size: 1.8rem;
    color: var(--accent-teal);
    margin-right: 10px;
}

.sidebar-brand span {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    padding: 24px 12px;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.sidebar-menu a i {
    margin-right: 14px;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition-smooth);
}

.sidebar-menu li.active a,
.sidebar-menu a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

.sidebar-menu li.active a {
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--accent-teal);
    padding-left: 13px;
}

.sidebar-menu li.active a i {
    color: var(--accent-teal);
}

.sidebar-user {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    flex-direction: column;
    max-width: 150px;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.logout-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.logout-btn:hover {
    color: #f87171;
}

/* Ana İçerik Alanı (Main Canvas) */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 40px;
    min-height: 100vh;
    transition: var(--transition-smooth);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

.page-title h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Sayfa Bölümleri (Tab Pages) */
.page-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.page-section.active {
    display: block;
}

/* 3. METRİK KARTLARI (METRICS CARDS) */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.metric-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.metric-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-smooth);
}

.metric-card.gold::after { background: var(--accent-gold); }
.metric-card.teal::after { background: var(--accent-teal); }
.metric-card.purple::after { background: #8b5cf6; }
.metric-card.green::after { background: #10b981; }

.metric-card:hover {
    transform: translateY(-4px);
    background: var(--bg-glass-hover);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.metric-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 18px;
}

.metric-card.gold .metric-icon { color: var(--accent-gold); background: rgba(212, 175, 55, 0.1); }
.metric-card.teal .metric-icon { color: var(--accent-teal); background: rgba(0, 180, 216, 0.1); }
.metric-card.purple .metric-icon { color: #a78bfa; background: rgba(139, 92, 246, 0.1); }
.metric-card.green .metric-icon { color: #34d399; background: rgba(16, 185, 129, 0.1); }

.metric-details h3 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-details .metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 4px;
    color: var(--text-primary);
}

/* 4. PLANLAYICI & SEÇİCİ KONTROLLERİ (CONTROLS BAR) */
.controls-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(11, 34, 64, 0.02) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 16px center;
    border: 1px solid rgba(11, 34, 64, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 12px 40px 12px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    background-size: 16px;
}

/* Seçeneklerin arka planını akdeniz beyazına zorla (Beyaz sayfa görünümünü engeller) */
.select-control option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: 12px;
}

.select-control:focus {
    border-color: var(--accent-teal);
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(13, 148, 136, 0.15);
}

/* Departman Gruplama Başlık Stilleri */
.dept-group-header {
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.08) 0%, transparent 100%);
    border-left: 4px solid var(--accent-teal);
    padding: 12px 20px;
    border-radius: 4px 12px 12px 4px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dept-group-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-navigation {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 4px;
}

.btn-nav {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-gold);
}

.current-week-label {
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-action {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
}

.btn-action.gold-border {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.btn-action.gold-border:hover {
    background: rgba(13, 148, 136, 0.08);
}

/* 5. VARDİYA ÇİZELGE TABLOSU (SHIFT PLANNING MATRIX) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    background: var(--bg-glass);
}

.table-shifts {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.table-shifts th,
.table-shifts td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
}

.table-shifts th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-shifts tbody tr {
    transition: var(--transition-smooth);
}

.table-shifts tbody tr:hover {
    background: rgba(0, 0, 0, 0.015);
}

.table-shifts tbody tr:last-child td {
    border-bottom: none;
}

.staff-col {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.staff-name {
    font-weight: 600;
    color: var(--text-primary);
}

.staff-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Gün Hücreleri ve Vardiya Seçimleri */
.shift-cell {
    position: relative;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
    padding: 10px 8px !important;
    transition: var(--transition-smooth);
}

.shift-cell:hover {
    background: rgba(0, 0, 0, 0.01);
}

.shift-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

/* Hücre Renk Kodları */
.shift-badge.M { background: var(--shift-morning); color: var(--shift-morning-text); border-color: rgba(13, 148, 136, 0.2); }
.shift-badge.E { background: var(--shift-evening); color: var(--shift-evening-text); border-color: rgba(178, 145, 42, 0.2); }
.shift-badge.N { background: var(--shift-night); color: var(--shift-night-text); border-color: rgba(99, 102, 241, 0.2); }
.shift-badge.OFF { background: var(--shift-off); color: var(--shift-off-text); border-color: rgba(148, 163, 184, 0.2); }
.shift-badge.YI { background: var(--shift-annual); color: var(--shift-annual-text); border-color: rgba(16, 185, 129, 0.2); }
.shift-badge.AI { background: var(--shift-comp); color: var(--shift-comp-text); border-color: rgba(245, 158, 11, 0.2); }
.shift-badge.R { background: var(--shift-sick); color: var(--shift-sick-text); border-color: rgba(239, 68, 68, 0.2); }
.shift-badge.RT { background: var(--shift-holiday); color: var(--shift-holiday-text); border-color: rgba(100, 116, 139, 0.2); }
.shift-badge.RTC { background: var(--shift-holiday-work); color: var(--shift-holiday-work-text); border-color: rgba(217, 119, 6, 0.25); }
.shift-badge.EMPTY { background: transparent; color: var(--text-muted); border: 1px dashed var(--border-glass); }

/* Vardiya Seçim Popover'ı */
.shift-popover {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 8px;
    z-index: 50;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 260px;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 4px;
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.shift-popover.active {
    display: grid;
}

.popover-item {
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.popover-item:hover {
    transform: scale(1.05);
}

/* 6. MODAL PENCERELER (MODALS) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    padding: 32px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

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

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--accent-teal);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #fff;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

/* İki Sütunlu Form Yerleşimi */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* 7. İZİN HAREKETLERİ TABLOSU & KARTLARI */
.detail-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
}

.ledger-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ledger-badge.plus { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.ledger-badge.minus { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge.active { background: rgba(16, 185, 129, 0.1); color: #34d399; }
.status-badge.archived { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.status-badge.pending, .status-badge.pending_dept { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-badge.pending_hr { background: rgba(1, 105, 168, 0.15); color: #0169a8; border: 1px solid rgba(1, 105, 168, 0.3); }
.status-badge.pending_admin { background: rgba(99, 102, 241, 0.15); color: #4f46e5; border: 1px solid rgba(99, 102, 241, 0.3); }
.status-badge.approved { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* 8. AYARLAR & KULLANICI YÖNETİMİ */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.settings-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.settings-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card h2 i {
    color: var(--accent-gold);
}

.user-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.user-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-list-details h4 {
    font-weight: 600;
    font-size: 0.95rem;
}

.user-list-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.btn-icon-danger {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-icon-danger:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

.btn-icon-primary {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-icon-primary:hover {
    color: var(--accent-teal);
    background: rgba(0, 180, 216, 0.1);
}

/* 9. BİLDİRİM VE TOAST SİSTEMİ (TOASTS) */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.toast {
    background: #0f172a;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    margin-bottom: 12px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 300px;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid var(--accent-teal); }

.toast i {
    font-size: 1.3rem;
}

.toast.success i { color: #34d399; }
.toast.error i { color: #f87171; }
.toast.info i { color: var(--accent-teal); }

/* ANIMASYONLAR (KEYFRAMES) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

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

/* 10. AYRILAN PERSONEL DETAY KARTI */
.archived-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.archived-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition-smooth);
}

.archived-card:hover {
    transform: translateY(-2px);
    background: var(--bg-glass-hover);
}

.archived-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
}

.archived-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.archived-card-header span {
    font-size: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.archived-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.archived-stat-item span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
}

.archived-stat-item strong {
    font-size: 1rem;
    color: #fff;
}

.archived-tenure {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.archived-countdown {
    font-size: 0.8rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* 11. YAZDIRMA STİLLERİ (PRINT MEDIA QUERIES) */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 10pt;
    }
    
    .sidebar,
    .top-bar,
    .controls-card,
    .btn-action,
    .toast-container,
    .modal-overlay,
    .sidebar-user,
    .no-print {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .page-section {
        display: block !important;
    }
    
    /* Vardiya Planı Yazdırma Optimizasyonu */
    .table-responsive {
        border: 1px solid #000 !important;
        box-shadow: none !important;
        overflow: visible !important;
        background: #fff !important;
    }
    
    .table-shifts {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    
    .table-shifts th, 
    .table-shifts td {
        border: 1px solid #000 !important;
        color: #000 !important;
        padding: 6px 8px !important;
        background: #fff !important;
    }
    
    .table-shifts th {
        text-shadow: none !important;
        font-weight: 700 !important;
    }
    
    .shift-badge {
        border: none !important;
        padding: 2px !important;
        background: transparent !important;
        color: #000 !important;
        font-size: 9pt !important;
        font-weight: 700 !important;
    }
    
    .shift-badge.EMPTY {
        border: none !important;
    }
    
    /* Yatay A4 formatı zorlaması */
    @page {
        size: landscape;
        margin: 1cm;
    }
}

/* MOBİL VE TABLET UYUMLULUĞU (RESPONSIVE RULES) */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }
    .sidebar-brand span,
    .user-info,
    .sidebar-menu span {
        display: none;
    }
    .sidebar-brand {
        padding: 20px 10px;
        justify-content: center;
    }
    .sidebar-brand i {
        margin-right: 0;
    }
    .sidebar-menu a {
        justify-content: center;
        padding: 14px;
    }
    .sidebar-menu a i {
        margin-right: 0;
    }
    .main-content {
        margin-left: 70px;
        padding: 24px;
    }
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .controls-card {
        flex-direction: column;
        align-items: stretch;
    }
    .control-group {
        justify-content: space-between;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
