:root {
    --bg-dark: #0a0a0c; 
    --bg-panel: #141417; 
    --accent: #ed1c24; 
    --success: #34c759; 
    --warning: #ff9f0a;
    --info: #0a84ff;
    --text-main: #f5f5f7;
    --text-muted: #8e8e93;
    --border: #2a2a2e;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-dark); color: var(--text-main); overflow: hidden; }

.screen { display: none; min-height: 100vh; width: 100vw; }
.screen.active { display: flex; }
.mt-auto { margin-top: auto; }

/* KINORA BRANDING & TYPOGRAPHY */
.logo-text { font-family: 'Cinzel', serif; font-size: 32px; letter-spacing: 2px; font-weight: 800; display: flex; align-items: baseline; }
.kinora-dot { color: var(--accent); font-size: 36px; margin-left: -2px; margin-right: 2px; text-shadow: 0 0 10px rgba(237, 28, 36, 0.4); }

/* GLASS PANEL YAPI TAŞI */
.glass-panel { background: rgba(26, 26, 29, 0.8); border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(15px); border-radius: 16px; }

/* GİRİŞ EKRANI */
#login-screen { justify-content: center; align-items: center; background: radial-gradient(circle at center, rgba(237,28,36,0.05), var(--bg-dark) 50%); }
.login-box { padding: 40px; width: 380px; text-align: center; box-shadow: 0 25px 50px rgba(0,0,0,0.5); }
.login-box p { color: var(--text-muted); margin: 10px 0 25px; font-size: 14px; }
.login-box input { width: 100%; padding: 14px; margin-bottom: 15px; border-radius: 8px; border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: white; outline: none; transition: 0.3s; }
.login-box input:focus { border-color: var(--accent); }

/* BUTONLAR */
.btn-primary { width: 100%; padding: 14px; background: var(--accent); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; letter-spacing: 1px; }
.btn-primary:hover { background: #ff3b30; box-shadow: 0 0 15px rgba(237,28,36,0.4); }
.btn-action { padding: 8px 16px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 12px; transition: 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-action.success { background: rgba(52,199,89,0.15); color: var(--success); border: 1px solid var(--success); }
.btn-action.success:hover { background: var(--success); color: black; }
.btn-action.warning { background: rgba(255,159,10,0.15); color: var(--warning); border: 1px solid var(--warning); }
.btn-action.warning:hover { background: var(--warning); color: black; }
.btn-action.info { background: rgba(10,132,255,0.15); color: var(--info); border: 1px solid var(--info); }
.btn-action.info:hover { background: var(--info); color: white; }

/* YAN MENÜ & TAKVİM */
.sidebar { width: 300px; background: var(--bg-panel); display: flex; flex-direction: column; border-right: 1px solid var(--border); padding: 40px 25px; }
.brand-header { margin-bottom: 50px; display: flex; justify-content: center; }
.nav-links { list-style: none; }
.nav-links li { padding: 14px 20px; margin-bottom: 10px; border-radius: 8px; cursor: pointer; color: var(--text-muted); transition: 0.3s; display: flex; align-items: center; gap: 15px; font-weight: 500; }
.nav-links li:hover { background: rgba(237, 28, 36, 0.1); color: var(--text-main); }
.nav-links li.active { background: rgba(237, 28, 36, 0.15); color: var(--accent); border-left: 3px solid var(--accent); }

.calendar-widget { background: rgba(0,0,0,0.4); border-radius: 12px; padding: 15px; border: 1px solid var(--border); margin-top: 30px; }
.clock-display { font-size: 20px; font-weight: 300; text-align: center; margin-bottom: 15px; letter-spacing: 2px; }
.calendar-nav { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-day { font-size: 11px; padding: 6px 0; border-radius: 4px; color: var(--text-muted); }
.cal-day.active { color: white; font-weight: bold; background: rgba(255,255,255,0.1); }
.logout-btn { background: transparent; border: 1px solid var(--border); color: var(--text-muted); padding: 12px; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 10px; }
.logout-btn:hover { background: #222; color: white; }

/* ANA İÇERİK & GÖREV KARTLARI */
.content { flex-grow: 1; padding: 50px; display: flex; flex-direction: column; overflow-y: auto; background: radial-gradient(circle at top right, rgba(237,28,36,0.02), transparent 50%); }
.top-header { margin-bottom: 30px; }
.greeting h2 { font-weight: 300; font-size: 32px; }
.badge { font-size: 11px; padding: 4px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-left: 10px; }
.badge.admin { background: var(--accent); color: white; }
.badge.employee { background: #333; color: var(--text-muted); }

.tasks-container { display: flex; flex-direction: column; gap: 15px; }
.task-card { background: rgba(26, 26, 29, 0.6); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s; border-left: 4px solid #444; }
.task-card:hover { background: rgba(36, 36, 40, 0.8); }

/* Görev Durumu Renkleri (Sol Çizgi) */
.task-card.status-pending { border-left-color: #444; }
.task-card.status-waiting_approval { border-left-color: var(--info); }
.task-card.status-revision { border-left-color: var(--warning); }
.task-card.status-completed { border-left-color: var(--success); opacity: 0.5; }

.task-info h3 { font-size: 16px; margin-bottom: 5px; }
.task-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.task-meta { font-size: 11px; color: #666; display: flex; gap: 15px; }
.task-meta span i { margin-right: 5px; }
.task-actions { display: flex; gap: 10px; }

/* MODALLAR & FORMLAR */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); justify-content: center; align-items: center; z-index: 1000; }
.modal.show { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { padding: 40px; width: 450px; position: relative; }
.modal-lg { width: 600px; }
.close { position: absolute; right: 25px; top: 20px; font-size: 28px; cursor: pointer; color: var(--text-muted); transition: 0.2s; }
.close:hover { color: white; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-dark); color: white; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }

/* KULLANICI LİSTESİ TABLOSU */
.user-row { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid var(--border); }
.user-row:last-child { border-bottom: none; }
.user-info-col { display: flex; flex-direction: column; }
.user-email { font-size: 14px; font-weight: 500; }
.role-select { background: var(--bg-dark); color: white; border: 1px solid var(--border); padding: 5px 10px; border-radius: 4px; outline: none; }

/* TOAST BİLDİRİM */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.toast { background: rgba(20, 20, 23, 0.95); border-left: 4px solid var(--accent); padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; min-width: 300px; animation: popIn 0.5s forwards, decayOut 0.5s forwards 4s; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.toast i { color: var(--accent); font-size: 20px; }
.toast h4 { font-size: 14px; color: white; margin-bottom: 3px;}
.toast p { font-size: 12px; color: var(--text-muted); }

/* YETKİ GİZLEME SINIFI */
body[data-role="employee"] .admin-only { display: none !important; }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes popIn { 0% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes decayOut { 0% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(100%); margin-bottom: 0; height: 0; padding: 0; overflow: hidden; } }

/* GÖREV KARTI İÇİNDEKİ LİNKLER */
.task-links-container { margin-top: 15px; display: flex; gap: 10px; flex-wrap: wrap; }
.task-link { padding: 8px 14px; border-radius: 6px; font-size: 12px; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: 0.3s; font-weight: 500; letter-spacing: 0.5px; }
.ref-link { background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid var(--border); }
.ref-link:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.sub-link { background: rgba(10,132,255,0.1); color: var(--info); border: 1px solid var(--info); }
.sub-link:hover { background: var(--info); color: white; transform: translateY(-2px); }