/* =====================================================
   EKSPO YAYASAN TERENGGANU 2026 - Custom Styles
   ===================================================== */

:root {
    --primary: #0B5394;
    --primary-dark: #094A7D;
    --primary-light: #0E6EB8;
    --accent: #f0a500;
    --accent-hover: #d49200;
    --bg-light: #f4f7fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navbar */
.navbar-brand {
    letter-spacing: -0.3px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0B5394 0%, #094A7D 50%, #0A4F8C 100%);
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .display-4 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 80%;
    height: 3px;
    background: #dee2e6;
    z-index: 0;
}

.step-indicator.active:not(:last-child)::after {
    background: var(--primary);
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(11, 83, 148, 0.4);
}

.step-indicator.completed .step-circle {
    background: var(--success);
    color: white;
}

.step-label {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.step-indicator.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.category-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 83, 148, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.category-dropdown {
    animation: fadeIn 0.3s ease;
}

/* Form Container */
#form-container {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.tingkah-laku-modal .modal-dialog {
    max-width: 900px;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

/* Peserta Cards */
.peserta-card {
    background: #fafbfc;
    transition: border-color 0.2s ease;
}

.peserta-card:hover {
    border-color: var(--primary-light);
}

/* Form choice controls inside custom bordered cards */
#form-container .form-check.form-check-lg {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-left: 1rem !important;
    margin-bottom: 0;
}

#form-container .form-check.form-check-lg .form-check-input {
    position: static;
    float: none;
    margin: 0;
}

#form-container .form-check.form-check-lg .form-check-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

/* Keep switch fully inside container */
#form-container .form-check.form-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding-left: 0 !important;
}

#form-container .form-check.form-switch .form-check-input {
    position: static;
    float: none;
    margin: 0;
}

/* Inline radio groups (e.g. pocket talk) */
#form-container .d-flex.gap-3 .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
}

#form-container .d-flex.gap-3 .form-check .form-check-input {
    position: static;
    float: none;
    margin: 0;
}

/* Custom Inovasi Item */
.inovasi-item {
    animation: fadeIn 0.3s ease;
}

/* Inline Validation */
.form-control.is-valid {
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");
}

.form-control.is-invalid {
    border-color: var(--danger);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23dc3545' d='M2.3 2.73L.6 4.53c-.4 1.04.46 1.4 1.1.8l1.1-1.4 3.4 4.2c.6.76 1.6-.06 1.2-.8l-4.1-4.6c-.43-.5-.6-.1-1.1.1z'/%3E%3C/svg%3E");
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #1a1a1a;
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #1a1a1a;
}

/* Card */
.card {
    border-radius: var(--border-radius);
}

/* Table */
.table thead th {
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .step-indicator:not(:last-child)::after {
        top: 17px;
        left: 55%;
        width: 90%;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        border-radius: 12px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .peserta-pameran-item .col-md-5,
    .peserta-pameran-item .col-md-4 {
        margin-bottom: 0.5rem;
    }

    #form-container .card-body {
        padding: 1.25rem !important;
    }

    #form-container .card-header h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 375px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-check-lg {
        padding: 0.75rem !important;
    }
}

@media (max-width: 576px) {
    #form-container .card-body {
        padding: 1rem !important;
    }

    #form-container h5 {
        font-size: 1.15rem;
    }

    #form-container .alert {
        font-size: 0.95rem;
    }

    #form-container .d-flex.justify-content-between.mt-4 {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    #form-container .d-flex.justify-content-between.mt-4 .btn {
        width: 100%;
    }

    #form-container .peserta-card {
        padding: 0.9rem !important;
    }
}

/* Admin fullscreen scrolling */
.container-fluid:fullscreen,
.container-fluid:-webkit-full-screen {
    height: 100vh;
    width: 100vw;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Print styles for success page */
@media print {
    .navbar, .btn, footer {
        display: none !important;
    }
    body {
        background: white;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Landing Page */
.hero-landing {
    position: relative;
}

.icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.info-card {
    transition: all 0.3s ease;
    border-radius: 16px;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

.info-card .icon-box {
    transition: transform 0.3s ease;
}

.info-card:hover .icon-box {
    transform: scale(1.1);
}

.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2) !important;
}

/* Landing page redesign */
.landing-hero {
    background: radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 30%), linear-gradient(160deg, #0B5394 0%, #073b73 48%, #0a5c88 100%);
    min-height: 100vh;
}

.landing-hero-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(2px);
}

.orb-one {
    width: 260px;
    height: 260px;
    top: -80px;
    right: -60px;
}

.orb-two {
    width: 180px;
    height: 180px;
    left: -40px;
    bottom: 140px;
}

.orb-three {
    width: 120px;
    height: 120px;
    right: 18%;
    bottom: 80px;
}

.py-lg-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.landing-pill,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.section-kicker {
    background: rgba(11, 83, 148, 0.08);
    color: var(--primary);
}

.landing-title {
    line-height: 1.05;
    letter-spacing: -0.04em;
    /* max-width: 10ch; */
}

.landing-lead {
    max-width: 42rem;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.88);
}

.landing-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
}

.event-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.8rem;
    flex: 0 0 auto;
}

.landing-info-list {
    display: grid;
    gap: 1rem;
}

.landing-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    color: #fff;
}

.landing-info-item i {
    font-size: 1.15rem;
    margin-top: 0.15rem;
    color: #ffd166;
}

.landing-info-item .label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
}

.landing-info-item strong {
    display: block;
    font-size: 0.98rem;
}

.flow-badge {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.landing-metrics {
    max-width: 46rem;
}

.metric-chip {
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.metric-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.feature-card,
.timeline-card,
.venue-card,
.category-spotlight,
.cta-panel {
    border-radius: 28px;
}

.feature-card,
.timeline-card,
.venue-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.feature-icon,
.category-spotlight-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.category-spotlight {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-spotlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mini-stat {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    height: 100%;
}

.mini-stat i {
    font-size: 1.25rem;
    margin-top: 0.1rem;
}

.mini-stat span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mini-stat strong {
    display: block;
    color: var(--text-dark);
}

.landing-cta {
    background: linear-gradient(160deg, #083d75 0%, #0B5394 52%, #07466f 100%);
}

.cta-panel {
    max-width: 860px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

@media (max-width: 992px) {
    .landing-title {
        max-width: none;
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        min-height: auto;
    }

    .py-lg-6 {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .landing-title {
        font-size: 2.15rem;
    }

    .landing-lead {
        font-size: 1rem;
    }

    .landing-glass,
    .feature-card,
    .timeline-card,
    .venue-card,
    .category-spotlight,
    .cta-panel {
        border-radius: 22px;
    }

    .cta-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .landing-title {
        font-size: 1.9rem;
    }

    .metric-chip {
        padding: 0.9rem;
    }

    .metric-value {
        font-size: 1.2rem;
    }

    .landing-info-item strong,
    .mini-stat strong {
        font-size: 0.92rem;
    }

    .timeline-step {
        grid-template-columns: 1fr;
    }

    .timeline-dot {
        margin-bottom: 0.25rem;
    }
}
