/* ========================================
   CUSTOM STYLES - BRIGHT & ELEGANT
   ======================================== */

:root {
    --navy-dark: #1A3A5C;
    --navy-mid: #2E6EA6;
    --navy-light: #D0E4F5;
    --navy-pale: #EBF4FC;
    --teal: #0D6B6E;
    --teal-light: #D0EEEF;
    --teal-pale: #EAF7F7;
    --green: #1A5C38;
    --green-light: #D4EBE0;
    --green-pale: #EAF5EF;
    --orange: #B85C00;
    --orange-light: #FDEBD0;
    --purple: #5B2C6F;
    --purple-light: #E8DAEF;
    --red: #922B21;
    --red-light: #FADBD8;
    --gray: #3D3D3D;
    --gray-mid: #888888;
    --gray-light: #F4F4F4;
}

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

html, body {
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--gray);
}

/* ========= NAVBAR ========= */
.navbar {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.15);
    border-bottom: 3px solid var(--teal);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white !important;
    letter-spacing: 0.5px;
}

.navbar-brand small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background: rgba(13, 107, 110, 0.2);
    transform: translateY(-2px);
}

/* ========= CARDS ========= */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: white;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    color: white;
    border: none;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem;
    font-weight: 600;
    border-bottom: 3px solid var(--teal);
}

.card-header.header-teal {
    background: linear-gradient(135deg, var(--teal) 0%, #0B5355 100%);
}

.card-header.header-green {
    background: linear-gradient(135deg, var(--green) 0%, #154C2B 100%);
}

.card-header.header-purple {
    background: linear-gradient(135deg, var(--purple) 0%, #472154 100%);
}

.card-body {
    padding: 2rem;
}

/* ========= BUTTONS ========= */
.btn {
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-dark) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #0f1e2e 100%);
    color: white;
}

.btn-teal {
    background: linear-gradient(135deg, var(--teal) 0%, #0B5355 100%);
    color: white;
}

.btn-teal:hover {
    background: linear-gradient(135deg, #0B5355 0%, #063335 100%);
    color: white;
}

.btn-green {
    background: linear-gradient(135deg, var(--green) 0%, #154C2B 100%);
    color: white;
}

.btn-green:hover {
    background: linear-gradient(135deg, #154C2B 0%, #0d3620 100%);
    color: white;
}

.btn-outline-navy {
    color: var(--navy-mid);
    border: 2px solid var(--navy-mid);
    background: white;
}

.btn-outline-navy:hover {
    background: var(--navy-pale);
    color: var(--navy-dark);
}

/* ========= HEADERS ========= */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy-dark);
    font-weight: 700;
}

.page-title {
    color: white;
    margin-bottom: 2rem;
}

.section-header {
    background: linear-gradient(135deg, var(--navy-pale) 0%, var(--teal-pale) 100%);
    padding: 1.5rem;
    border-left: 5px solid var(--navy-mid);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0;
    color: var(--navy-dark);
}

.section-header p {
    margin: 0.5rem 0 0 0;
    color: var(--gray-mid);
    font-size: 0.95rem;
}

/* ========= FORMS ========= */
.form-control, .form-select {
    border: 2px solid var(--navy-light);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 0.2rem rgba(46, 110, 166, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

/* ========= LIKERT SCALE ========= */
.likert-section {
    background: linear-gradient(135deg, var(--navy-pale) 0%, var(--teal-pale) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.likert-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--navy-mid);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.likert-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.likert-item .item-number {
    background: var(--navy-dark);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.likert-item .item-text {
    flex: 1;
    color: var(--gray);
    line-height: 1.6;
}

.likert-item .item-options {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.likert-option {
    width: 50px;
    height: 50px;
    border: 2px solid var(--navy-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: white;
}

.likert-option:hover {
    border-color: var(--navy-mid);
    background: var(--navy-pale);
    transform: scale(1.1);
}

.likert-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.likert-option input[type="radio"]:checked {
    accent-color: var(--navy-mid);
}

/* ========= SCALE LEGEND ========= */
.scale-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.scale-badge {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scale-badge.scale-1 { background: #FADBD8; color: #922B21; }
.scale-badge.scale-2 { background: #FDEBD0; color: #B85C00; }
.scale-badge.scale-3 { background: #F4F4F4; color: #888888; }
.scale-badge.scale-4 { background: #D0E4F5; color: #2E6EA6; }
.scale-badge.scale-5 { background: #D4EBE0; color: #1A5C38; }

/* ========= OPEN QUESTIONS ========= */
.open-question {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--teal);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.open-question .question-label {
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.open-question .question-label span {
    background: var(--teal);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.open-question textarea {
    min-height: 120px;
    border: 2px solid var(--navy-light) !important;
    border-radius: 8px;
    padding: 1rem;
    font-family: inherit;
    resize: vertical;
}

/* ========= BADGES & TAGS ========= */
.badge {
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-navy { background: var(--navy-pale); color: var(--navy-dark); }
.badge-teal { background: var(--teal-pale); color: var(--teal); }
.badge-green { background: var(--green-pale); color: var(--green); }
.badge-success { background: #D4EBE0; color: #1A5C38; }
.badge-warning { background: #FDEBD0; color: #B85C00; }
.badge-danger { background: #FADBD8; color: #922B21; }

/* Likert Scale Badges (untuk rubrik penilaian) */
.badge.scale-1 { background: #FADBD8 !important; color: #222 !important; }
.badge.scale-2 { background: #FDEBD0 !important; color: #222 !important; }
.badge.scale-3 { background: #F4F4F4 !important; color: #222 !important; }
.badge.scale-4 { background: #D0E4F5 !important; color: #222 !important; }
.badge.scale-5 { background: #D4EBE0 !important; color: #222 !important; }

/* ========= TABLES ========= */
.table {
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    color: white;
}

.table thead th {
    border: none;
    padding: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.table tbody td {
    border: 1px solid var(--navy-light);
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--navy-pale);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--gray-light);
}

/* ========= HERO SECTION ========= */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 50%, var(--teal) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
    font-style: italic;
}

/* ========= ALERTS ========= */
.alert {
    border: none;
    border-left: 5px solid;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-info {
    background: linear-gradient(135deg, var(--navy-pale) 0%, var(--teal-pale) 100%);
    border-color: var(--navy-mid);
    color: var(--navy-dark);
}

.alert-success {
    background: linear-gradient(135deg, var(--green-pale) 0%, var(--teal-pale) 100%);
    border-color: var(--green);
    color: var(--green);
}

.alert-warning {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--purple-light) 100%);
    border-color: var(--orange);
    color: var(--orange);
}

.alert-danger {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--orange-light) 100%);
    border-color: var(--red);
    color: var(--red);
}

/* ========= FOOTER ========= */
footer {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    border-top: 3px solid var(--teal);
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

footer .footer-brand {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .likert-item {
        flex-direction: column;
        gap: 1rem;
    }

    .likert-item .item-options {
        width: 100%;
        justify-content: space-around;
    }

    .scale-legend {
        gap: 0.5rem;
    }

    .scale-badge {
        min-width: 100px;
        padding: 0.75rem;
        font-size: 0.8rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

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

/* ========= ANIMATIONS ========= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

/* ========= UTILITIES ========= */
.text-navy { color: var(--navy-dark) !important; }
.text-teal { color: var(--teal) !important; }
.text-green { color: var(--green) !important; }
.text-muted { color: var(--gray-mid) !important; }

.bg-navy-pale { background: var(--navy-pale) !important; }
.bg-teal-pale { background: var(--teal-pale) !important; }
.bg-green-pale { background: var(--green-pale) !important; }

.shadow-sm-custom {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.shadow-md-custom {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rounded-custom {
    border-radius: 12px;
}

.border-navy {
    border-color: var(--navy-light) !important;
}

.border-teal {
    border-color: var(--teal-pale) !important;
}
