/* Page Header */
/* 
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-medium);
    animation: pulse 2s ease-in-out infinite;
}

.page-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.header-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}
*/

/* Progress Steps */
/* 
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray);
    border: 3px solid var(--light-gray);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.step span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
}

.step.active span {
    color: var(--primary-color);
    font-weight: 600;
}
*/

/* Flash Messages */
.flash-messages {
    margin-bottom: 2rem;
}

/* Result Display - Solid White Card */
.result-display {
    background: var(--white);
    /* Changed from rgba(255, 255, 255, 0.9) */
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    position: relative;
    text-align: center;
}

/* Simple top border accent based on result */
.result-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.result-display[data-result="success"]::before {
    background: var(--kid-purple);
}

.result-display[data-result="danger"]::before {
    background: var(--kid-pink);
}

.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.result-icon.success {
    background: var(--kid-purple);
}

.result-icon.danger {
    background: var(--kid-pink);
}

.result-header h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-primary);
}

.result-status {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-status.success {
    background: var(--kid-purple);
    color: var(--white);
}

.result-status.danger {
    background: var(--kid-pink);
    color: var(--white);
}

.result-content {
    margin-top: 2rem;
    text-align: left;
}

.recommendation {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid rgba(44, 62, 80, 0.1);
}

.recommendation.success {
    background: #F0FDF4;
    /* Changed from rgba(168, 230, 207, 0.1) - solid light green */
    border-left: 4px solid var(--kid-purple);
}

.recommendation.warning {
    background: #FEF2F2;
    /* Changed from rgba(255, 107, 157, 0.1) - solid light red */
    border-left: 4px solid var(--kid-pink);
}

.recommendation i {
    font-size: 2rem;
    color: var(--dark-primary);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.recommendation h4 {
    font-family: 'Fredoka', sans-serif;
    color: var(--dark-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.recommendation p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.recommendation ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.recommendation li {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.1);
    border: none;
    cursor: pointer;
}

.btn-action.primary {
    background: var(--kid-blue);
    color: var(--white);
}

.btn-action.secondary {
    background: var(--white);
    color: var(--dark-primary);
    border: 2px solid var(--dark-primary);
}

.btn-action:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15);
}

/* Model Info Section - Solid White Card */
.model-info-section {
    background: var(--white);
    /* Changed from rgba(255, 255, 255, 0.9) */
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    position: relative;
    /* Add position for border accent */
}

/* Simple top border accent */
.model-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gold);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--dark-primary);
}

.info-header i {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.info-header h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: var(--dark-primary);
}

.model-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Stat Cards - Solid Light Gray */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #F8F9FA;
    /* Changed from rgba(52, 73, 94, 0.05) */
    border: 1px solid rgba(52, 73, 94, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: #E9ECEF;
    /* Changed from rgba(52, 73, 94, 0.1) */
    transform: translateY(-2px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--dark-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Form Section - Solid White Card */
.form-section {
    background: var(--white);
    /* Changed from rgba(255, 255, 255, 0.9) */
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
    position: relative;
}

/* Simple top border accent */
.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gold);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

.form-header i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.form-header h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    color: var(--dark-primary);
    margin-bottom: 1rem;
}

.form-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--dark-primary);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.form-group label i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.form-group input {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(241, 196, 15, 0.25);
    transform: translateY(-2px);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Field Error Messages - Google Forms Style */
.field-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-left: 4px solid var(--kid-pink);
    border-radius: var(--radius-md);
    color: var(--kid-pink);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.field-error i {
    font-size: 1rem;
    color: var(--kid-pink);
}

/* Animation for error appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 50px;
    }
}

/* Input states */
input:focus {
    outline: none;
    border-color: var(--accent-gold) !important;
    box-shadow: 0 0 0 0.2rem rgba(241, 196, 15, 0.25);
    transform: translateY(-2px);
}

input.error {
    border-color: var(--kid-pink) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 157, 0.25);
}

input.valid {
    border-color: var(--kid-purple) !important;
    box-shadow: 0 0 0 0.2rem rgba(168, 230, 207, 0.25);
}

/* Gender selector error state */
.gender-selector input[type="radio"]+.gender-option {
    transition: all 0.3s ease;
}

.gender-selector.error .gender-option {
    border-color: var(--kid-pink);
    background: rgba(255, 107, 157, 0.05);
}

/* Gender Selector - Simplified */
.gender-selector {
    display: flex;
    gap: 1rem;
}

.gender-selector input[type="radio"] {
    display: none;
}

.gender-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border: 2px solid rgba(44, 62, 80, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.gender-option:hover {
    border-color: var(--accent-gold);
    background: #FFFBF0;
    /* Changed from rgba(241, 196, 15, 0.05) - solid light yellow */
}

.gender-selector input[type="radio"]:checked+.gender-option {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: var(--dark-primary);
    transform: scale(1.02);
}

.gender-option i {
    font-size: 2rem;
}

.gender-option span {
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
}

/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.section-divider::before {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--accent-gold);
    margin-right: 1rem;
}

.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--accent-gold);
    margin-left: 1rem;
}

/* Section Divider Background - Solid */
.section-divider span {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--dark-primary);
    background: var(--white);
    /* Changed from rgba(255, 255, 255, 0.9) */
    padding: 0 2rem;
    font-size: 1.1rem;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(44, 62, 80, 0.1);
}

.btn-predict {
    background: var(--accent-gold);
    color: var(--dark-primary);
    border: none;
    padding: 1.5rem 3rem;
    border-radius: var(--radius-lg);
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 250px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-predict:hover:not(:disabled) {
    background: #F4D03F;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.4);
}

.btn-predict:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.1);
}

.nav-btn.primary {
    background: var(--kid-blue);
    color: var(--white);
}

.nav-btn.secondary {
    background: var(--white);
    color: var(--dark-primary);
    border: 2px solid var(--dark-primary);
}

.nav-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15);
}

/* Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {

    .form-section,
    .result-display,
    .model-info-section {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2.5rem;
    }

    .form-header h3 {
        font-size: 2rem;
    }

    .model-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .gender-selector {
        flex-direction: row;
    }

    .model-stats {
        grid-template-columns: 1fr;
    }

    .result-actions,
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-action,
    .nav-btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .form-section,
    .result-display,
    .model-info-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .form-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .form-header i {
        font-size: 2.5rem;
    }

    .form-header h3 {
        font-size: 1.8rem;
    }

    .form-header p {
        font-size: 1rem;
    }

    .result-header h3 {
        font-size: 1.6rem;
    }

    .result-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .recommendation {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .recommendation i {
        font-size: 1.5rem;
    }

    .section-divider {
        margin: 2rem 0 1.5rem;
    }

    .section-divider span {
        font-size: 1rem;
        padding: 0 1.5rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {

    .form-section,
    .result-display,
    .model-info-section {
        padding: 1.2rem 0.9rem;
        margin-bottom: 1.2rem;
    }

    .form-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .form-header i {
        font-size: 2rem;
    }

    .form-header h3 {
        font-size: 1.4rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }

    /* gender selector - tetap 2 kolom, lebih compact */
    .gender-selector {
        flex-direction: row;
        gap: 0.6rem;
    }

    .gender-option {
        padding: 0.9rem 0.5rem;
        font-size: 0.9rem;
    }

    .gender-option i {
        font-size: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .form-hint {
        font-size: 0.78rem;
    }

    .section-divider {
        margin: 1.5rem 0 1rem;
    }

    .section-divider span {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .btn-predict {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        min-width: unset;
        letter-spacing: 0.5px;
    }

    .form-actions {
        margin-top: 1.5rem;
        padding-top: 1.2rem;
    }

    /* result display */
    .result-header h3 {
        font-size: 1.3rem;
    }

    .result-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .result-status {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .recommendation {
        padding: 1rem;
        gap: 0.8rem;
    }

    .recommendation i {
        font-size: 1.3rem;
    }

    .recommendation h4 {
        font-size: 1rem;
    }

    .recommendation p,
    .recommendation li {
        font-size: 0.9rem;
    }

    /* model info */
    .info-header h3 {
        font-size: 1.3rem;
    }

    .model-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 0.9rem;
        gap: 0.6rem;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    /* nav actions */
    .nav-actions {
        gap: 0.6rem;
    }

    .nav-btn {
        padding: 0.85rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Clean focus states for accessibility */
.btn-predict:focus,
.btn-action:focus,
.nav-btn:focus {
    outline: 3px solid rgba(241, 196, 15, 0.5);
    outline-offset: 2px;
}

/* Print styles - Force solid white */
@media print {

    .form-section,
    .nav-actions {
        display: none;
    }

    .result-display,
    .model-info-section {
        box-shadow: none;
        background: var(--white) !important;
        border: 1px solid #ccc;
    }
}