/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #003366;
    --primary-hover: #002244;
    --secondary: #e2e8f0;
    --accent: #d946ef;
    --bg-light: #ffffff;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #334155;
    --border-color: #003366;
    --shadow: none;
    --shadow-lg: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html,
body {
    background-color: #ffffff !important;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.35;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* Professional Card Style */
.glass-card {
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2,
h3 {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.survey-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 8px;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--primary);
}

/* Survey Elements */
.category-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.question-item {
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
    color: var(--primary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.option-card input {
    display: none;
}

.option-card label {
    display: block;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.option-card label:hover {
    border-color: var(--primary);
    background-color: #f8fafc;
}

.option-card input:checked+label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Admin Styling */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    font-weight: 500;
    transition: 0.2s;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.main-content {
    flex: 1;
    padding: 3rem;
    background-color: var(--bg-light);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: #ffffff;
    text-align: left;
    color: var(--primary);
    padding: 12px 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* Kemenhub Header UI */
.top-nav-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kemenhub-logo {
    height: 40px;
    width: auto;
}

.kemenhub-text {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.info-alert {
    background-color: var(--primary);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #ffffff;
}

.legend-box {
    background-color: var(--primary);
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.legend-box p {
    font-weight: 500;
    font-size: 0.8rem;
    color: #ffffff;
    margin-bottom: 0;
    opacity: 0.9;
}

/* --- RESPONSIVE MOBILE ADJUSTMENTS --- */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem 0.75rem;
    }

    .glass-card {
        padding: 1.5rem 1.5rem;
        border-radius: 12px;
        font-size: 0.8rem !important;

    }

    h1,
    .survey-main-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }

    .kemenhub-text {
        font-size: 0.85rem !important;
        margin-bottom: -1rem !important;
    }

    .survey-subtitle {
        font-size: 0.7rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    .input-group label {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    select,
    textarea {
        font-size: 0.8rem !important;
        padding: 14px 16px !important;
        border-radius: 8px;
    }

    .info-alert {
        font-size: 0.67rem !important;
        padding: 1rem !important;
        gap: 0.75rem !important;
        margin-bottom: 2rem !important;
    }

    /* Survey Elements */
    .category-section {
        font-size: 0.8rem !important;
        margin-bottom: 1rem;
        padding-bottom: 1.5rem;
        border-bottom: 2px solid #f1f5f9;
    }

    .legend-box {
        padding: 1rem !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .legend-box p {
        font-size: 0.7rem !important;
        width: 100%;
        /* Stack on mobile for better clarity */
    }

    .question-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .question-text {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.25rem !important;
    }

    .options-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .options-grid .option-card:nth-child(5) {
        grid-column: span 2 !important;
    }

    .option-card label {
        padding: 12px 10px !important;
        font-size: 0.85rem !important;
    }

    .btn {
        width: 50%;
        padding: 10px !important;
        font-size: 0.8rem !important;
        margin-top: 1rem;
    }

    .top-nav-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-bottom: 1.25rem;
    }

    .logo-area {
        flex-direction: column;
        gap: 0.5rem;
    }
}