body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

h1 { font-size: 22px; }

input[type="file"],
.search-input {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 8px;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #334155;
}

tr:hover { background: #273449; }

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.badge.good { background: #064e3b; color: #34d399; }
.badge.warning { background: #78350f; color: #fbbf24; }
.badge.danger { background: #7f1d1d; color: #f87171; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.kpi-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
}

.kpi-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #94a3b8;
}

.kpi-card p {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
}

.chart-svg text {
    fill: #94a3b8;
    font-size: 13px;
}

.grid line {
    stroke: #334155;
    stroke-width: 1;
}

.work { fill: #3b82f6; }
.lunch { fill: #facc15; }
.break { fill: #f97316; }

.legend {
    margin-top: 15px;
    font-size: 14px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.work { background: #3b82f6; }
.dot.lunch { background: #facc15; }
.dot.break { background: #f97316; }

.pie-svg { display: block; margin: auto; }

.pie-text {
    fill: #f1f5f9;
    font-size: 20px;
    font-weight: bold;
}

.uid-label {
    color: #94a3b8;
    margin-bottom: 20px;
}

.table-section {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
}

/* ===== TIMELINE ===== */

.timeline-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.timeline {
    display: flex;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    background: #0f172a;
}

.segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.segment.work {
    background: #3b82f6;
    color: white;
}

.segment.lunch {
    background: #facc15;
    color: black;
}

.segment.break {
    background: #f97316;
    color: white;
}

.timeline-legend {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.week-selector select,
.timeline-header select {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 6px;
    border-radius: 6px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
