/* public/style.css */

:root {
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --primary: #3b82f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-light: #fef2f2;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header & Filter */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: var(--text-main);
}

.header p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-weight: 500;
}

/* Card Base */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Timeline Styles */
.timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.time-badge {
    background-color: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.timeline-content {
    flex: 1;
}

.timeline-content p {
    margin: 0 0 4px 0;
}

.timeline-content ul {
    margin: 4px 0 0;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Tambahkan ini di style.css */
.eval-list li {
    position: relative;
    padding-left: 5px;
    margin-bottom: 10px;
    color: var(--text-main);
}
.eval-list li::marker {
    color: var(--primary);
    font-weight: bold;
}

/* Progress Bar Styles */
.progress-item {
    margin-bottom: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.progress-track {
    background-color: var(--border-color);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background-color: var(--success);
    transition: width 0.5s ease-in-out;
}

/* Incident / Alert Card */
.alert-card {
    border-left: 4px solid var(--danger);
    background-color: var(--danger-light);
}

.alert-card .card-title {
    border-bottom-color: #fca5a5;
    color: #991b1b;
}

/* Evaluasi List Styles */
.eval-list {
    padding-left: 20px;
    margin: 0;
}

.eval-list li {
    margin-bottom: 12px;
}

.eval-list li:last-child {
    margin-bottom: 0;
}

.highlight {
    font-weight: 600;
    color: var(--primary);
}

/* Form Styling (Jika dipakai di halaman input) */
.form-group {
    margin-bottom: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* Responsive */
@media (max-width: 600px) {
    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }
    .time-badge {
        align-self: flex-start;
    }
}