/* ================================================
   GLOBAL STYLES - Penilaian Gerak Jalan Frontend
   ================================================ */

/* Font Default */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f1f5f9 !important;
    color: #1e293b;
}

/* ======================== NAVBAR ======================== */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
}

/* ======================== CARDS ======================== */
.card-premium {
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.04) !important;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    background-color: #ffffff;
}

.card-premium:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04) !important;
}

/* Stat card icon wrapper */
.stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ======================== TABEL ======================== */
.table-premium {
    border-collapse: separate;
    border-spacing: 0;
}

.table-premium thead tr th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.table-premium tbody tr td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.table-premium tbody tr:hover td {
    background-color: #f8fafc;
}

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

/* ======================== FORM INPUT ======================== */
.form-input-premium {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    color: #1e293b;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input-premium:focus {
    background-color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
    outline: none;
    color: #1e293b;
}

.form-input-premium::placeholder {
    color: #94a3b8;
}

/* ======================== STATUS BADGE ======================== */
.badge-status {
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.85em;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ======================== BUTTONS ======================== */
.btn-red {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.btn-red:hover {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-outline-red {
    color: #ef4444;
    border: 1.5px solid #ef4444;
    font-weight: 600;
    border-radius: 10px;
    background-color: transparent;
    transition: all 0.2s ease;
}
.btn-outline-red:hover {
    background-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ======================== ASSESSMENT FORM ======================== */
.score-input-wrap {
    position: relative;
}

.score-input-wrap .score-preview {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 0.8rem;
    color: #ef4444;
    pointer-events: none;
}

/* Live preview card */
.preview-card {
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%);
    border-radius: 16px;
    border: none;
    color: white;
}

.preview-card .value-main {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: #fbbf24;
}

.preview-card .value-secondary {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fecaca;
}

/* ======================== FOOTER ======================== */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 0;
    margin-top: auto;
}

footer small {
    color: #94a3b8;
}

/* ======================== UTILITIES ======================== */
.text-slate-800 { color: #1e293b !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-500 { color: #64748b !important; }
.text-muted     { color: #64748b !important; }

/* Aksen merah (selaras dengan halaman login) */
.text-red-600  { color: #dc2626 !important; }
.text-red-200  { color: #fecaca !important; }
.text-red-300  { color: #fca5a5 !important; }
.bg-red-950    { background-color: #450a0a !important; }
.bg-brand      { background-color: #ef4444 !important; }
.border-red-900\/50 { border-top-color: rgba(127, 29, 29, 0.5) !important; }

.font-bold    { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium  { font-weight: 500; }

/* Menghindari tabel melimpah ke kiri di layar kecil */
.table-responsive {
    border-radius: 0 0 16px 16px;
    overflow-x: auto;
}
