/* ===================================================================
   Sistem Penjaminan Mutu & Evaluasi Bimtek Digitalisasi SMK 2026
   Modern Education Governance Design System
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --primary: #0e3a6c;
    --primary-dark: #092548;
    --primary-light: #1d599c;
    --secondary: #0284c7;
    --secondary-light: #38bdf8;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --surface: #ffffff;
    --bg-page: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header & Banner */
.official-header {
    background: linear-gradient(135deg, #092548 0%, #0e3a6c 60%, #175496 100%);
    color: #ffffff;
    padding: 2.5rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(9, 37, 72, 0.25);
}

.official-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.official-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.container-narrow {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

.container-wide {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.header-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 400;
    max-width: 820px;
}

.header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #e2e8f0;
}

.meta-item i, .meta-item svg {
    color: var(--secondary-light);
}

/* Progress Tracker Bar */
.sticky-progress {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.progress-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.progress-pill {
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.progress-track {
    flex: 1;
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--success) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Card System */
.survey-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.survey-card:hover {
    box-shadow: var(--shadow-md);
}

.card-header-styled {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-header-styled.aspect-head {
    background: linear-gradient(to right, #f1f5f9, #ffffff);
    border-left: 5px solid var(--primary);
}

.aspect-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.aspect-badge {
    background: var(--primary);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.aspect-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    padding-left: 2.6rem;
}

.card-body-styled {
    padding: 1.5rem;
}

/* Likert Table / Item List */
.item-row {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    transition: background 0.15s ease;
}

.item-row:hover {
    background: #fbfcfe;
}

.item-row:last-child {
    border-bottom: none;
}

.item-header {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.item-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: #e0f2fe;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.item-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.5;
}

/* Likert Radio Group */
.likert-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-left: 2.3rem;
}

@media (max-width: 640px) {
    .likert-options {
        grid-template-columns: repeat(2, 1fr);
        margin-left: 0;
    }
}

.likert-card {
    position: relative;
    cursor: pointer;
}

.likert-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.likert-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.likert-score {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.2;
}

.likert-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.likert-card input[type="radio"]:checked + .likert-btn {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(14, 58, 108, 0.12);
}

.likert-card input[type="radio"]:checked + .likert-btn .likert-score {
    color: var(--primary);
    transform: scale(1.1);
}

.likert-card input[type="radio"]:checked + .likert-btn .likert-label {
    color: var(--primary);
}

/* Special color for score 4 (Sangat Baik) */
.likert-card.opt-4 input[type="radio"]:checked + .likert-btn {
    border-color: var(--success);
    background: #ecfdf5;
}
.likert-card.opt-4 input[type="radio"]:checked + .likert-btn .likert-score,
.likert-card.opt-4 input[type="radio"]:checked + .likert-btn .likert-label {
    color: #065f46;
}

/* Quick Fill Buttons */
.quick-fill-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.quick-fill-btn:hover {
    background: #f1f5f9;
    color: var(--text-main);
    border-color: #94a3b8;
}

/* Form Controls */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-label .required {
    color: var(--danger);
}

.form-control, .form-select {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.925rem;
    color: var(--text-main);
    background-color: #ffffff;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

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

textarea.form-control {
    min-height: 90px;
    resize: vertical;
}

/* Radio Group in Profile */
.radio-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.radio-chip {
    cursor: pointer;
}

.radio-chip input[type="radio"] {
    display: none;
}

.chip-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.radio-chip input[type="radio"]:checked + .chip-label {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Action Bar */
.submit-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: 3rem;
}

.btn-submit-main {
    background: linear-gradient(135deg, #0e3a6c 0%, #0284c7 100%);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(14, 58, 108, 0.4);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-submit-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 25px -5px rgba(14, 58, 108, 0.5);
    background: linear-gradient(135deg, #092548 0%, #0369a1 100%);
}

/* Footer */
.official-footer {
    background: #092548;
    color: #94a3b8;
    padding: 2.5rem 1.5rem;
    font-size: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    color: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
}

/* Badges & Tables */
.badge-score {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge-sangat-baik { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-baik { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-kurang { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-sangat-kurang { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Print Mode Styling */
@media print {
    .sticky-progress, .submit-box, .btn-print-hide, .official-footer, .quick-fill-btn {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        font-size: 11pt;
    }
    .survey-card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
}
