@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg: #14161a;
    --surface: #1b1e23;
    --surface-2: #21252b;
    --border: #2a2e35;
    --text: #eceef0;
    --text-muted: #8b9098;
    --accent: #c4d82e;
    --accent-dim: #9aab1f;
    --danger: #e2574c;
    --font-head: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
}

a { color: inherit; }

.layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.brand {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    padding: 0 24px 24px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 2px;
    display: inline-block;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.nav a {
    text-decoration: none;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border-left: 2px solid transparent;
}

.nav a:hover { background: var(--surface-2); color: var(--text); }

.nav a.active {
    background: var(--surface-2);
    color: var(--text);
    border-left: 2px solid var(--accent);
}

.nav-footer {
    margin-top: auto;
    padding: 12px 24px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.main {
    padding: 32px 40px;
    max-width: 880px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
}

.topbar h1 {
    font-family: var(--font-head);
    font-size: 24px;
    margin: 0;
    letter-spacing: -0.01em;
}

.topbar .date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.card-hero {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(196, 216, 46, 0.15);
}

.card h2 {
    font-family: var(--font-head);
    font-size: 16px;
    margin: 0 0 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    white-space: pre-line;
}

.row-list { display: flex; flex-direction: column; }

.row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-top: 1px solid var(--border);
}

.row:first-child { border-top: none; }

.row-bar {
    width: 3px;
    align-self: stretch;
    border-radius: 2px;
    flex-shrink: 0;
}

.pri-high .row-bar, .pri-high.row-bar { background: var(--danger); }
.pri-mid .row-bar, .pri-mid.row-bar { background: var(--accent); }
.pri-low .row-bar, .pri-low.row-bar { background: var(--text-muted); }

.row-body { flex: 1; min-width: 0; }

.row-title { font-weight: 500; font-size: 14.5px; }

.row-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.row-reason {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

.btn:hover { border-color: var(--text-muted); }

.btn-approve { background: var(--accent); color: #14161a; border-color: var(--accent); }
.btn-approve:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

.btn-reject { color: var(--danger); }

.badge {
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-accent { color: var(--accent); border-color: rgba(196,216,46,0.35); }

.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

input[type=text], input[type=password], input[type=number], select, textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
}

textarea { resize: vertical; min-height: 80px; }

.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card { width: 320px; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-grid-5 { grid-template-columns: repeat(5, 1fr); }

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.error-msg {
    background: rgba(226, 87, 76, 0.12);
    border: 1px solid rgba(226, 87, 76, 0.4);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

@media (max-width: 760px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        align-items: center;
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .brand { padding: 0; margin-right: auto; }
    .nav { flex-direction: row; padding: 0; }
    .nav-footer { margin-top: 0; padding: 0; }
    .main { padding: 20px; }
    .stat-grid { grid-template-columns: 1fr; }
    .stat-grid-5 { grid-template-columns: repeat(2, 1fr); }
    div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* --- Canli Izleme --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.employee-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 12px;
    text-align: center;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}

.employee-card .avatar {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    transition: transform 0.3s;
}

.employee-card .ename {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
}

.employee-card .etitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.employee-card .estatus {
    margin-top: 10px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.employee-card.working {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.employee-card.working .avatar {
    animation: bob 0.8s ease-in-out infinite;
}

.employee-card.working .status-dot {
    background: var(--accent);
    animation: pulse-dot 1s ease-in-out infinite;
}

.employee-card.just-done {
    border-color: var(--accent);
    animation: flash-done 1.2s ease-out;
}

.employee-card.just-done .status-dot { background: var(--accent); }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196,216,46,0.5); }
    50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(196,216,46,0); }
}

@keyframes flash-done {
    0% { background: rgba(196,216,46,0.18); }
    100% { background: var(--surface); }
}

.feed-item {
    animation: slide-in 0.3s ease-out;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.feed-thumb {
    max-width: 160px;
    border-radius: 6px;
    margin-top: 8px;
    display: block;
}

.big-toggle {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 8px;
}

.idle-banner {
    text-align: center;
    padding: 20px;
    font-size: 20px;
}
