/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    text-decoration: none;
    color: inherit; 
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
   content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.button-entrar{
    background: #667eea;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}


.button-entrar:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Form Card */
.hero-form-container {
    width: 650px;
    display: flex;
    justify-content: center;
}

.form-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* max-width: 500px; */
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Form Sections */
.form-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.form-section.active {
    display: block;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-header i {
    font-size: 1.2rem;
    color: #667eea;
}

.section-header h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

/* Buttons */
.btn {
    padding: 0.65rem 2.5rem;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: solid;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e5e9;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.progress-step.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.progress-step.completed {
    background: #28a745;
    color: white;
}

.progress-step.completed::after {
    content: '✓';
    position: absolute;
}

/* Result Section */
.result-section {
    padding: 80px 0;
    background: white;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.result-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.result-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.obesity-level {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    color: white;
}

.level-label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.level-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.confidence-meter {
    padding: 1rem;
}

.meter-label {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.meter-bar {
    height: 20px;
    background: #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 10px;
    transition: width 1s ease;
    width: 0%;
}

.meter-value {
    font-weight: 600;
    color: #333;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

/* Seção principal */
.system-section {
    padding: 140px 0 80px;
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
}

.system-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    justify-content: space-between;
}

.system-content-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.system-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.system-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.system-buttom {
    display: flex;
    justify-content: flex-start;
}

.system-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.system-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}


/* Seções de conteúdo */
.about-section,
.importance-section {
    padding: 80px 0;
    background: white;
}

.features-inf {
    background-color: #f8f9ff;
    padding: 80px 0;
}

.team-section {
    background: white;
    padding: 80px 0;
}

/* Seção de importância */
.importance-context {
    display: flex;
    flex-direction: column;
    gap: 3.7rem;
}

.importance-context-h2 {
    text-align: center;
}

.importance-context-h2 h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.importance-context-form-IA,
.importance-context-form-IMC {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.importance-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    justify-self: center;
}

.importance-context-imc,
.importance-context-IA {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.importance-context-imc h3,
.importance-context-IA h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.p-text {
    text-align: justify;
    line-height: 1.7;
    color: #666;
}

.importance-imc-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.importante-imc-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Seção de características */
.features-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.features-text {
    text-align: center;
}

.features-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.features-orient-left{
    display: flex;
    justify-content: flex-start;
}

.features-orient-right{
    display: flex;
    justify-content: flex-end;
}

.features-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    gap: 2rem;
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.features-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.features-form-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.features-form-content ul {
    list-style: none;
    padding: 0;
}

.features-form-content li {
    padding: 0.25rem 0;
    color: #666;
    position: relative;
    padding-left: 1rem;
}

.features-form-content li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.features-disclaimer {
    text-align: center;
    margin-top: 2rem;
}

.features-disclaimer p {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

/* Seção sobre */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.feature h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.layer {
    padding: 1.5rem 2rem;
    border-radius: 10px;
    color: white;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 250px;
    justify-content: center;
}

.frontend-layer {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.backend-layer {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.ai-layer {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #667eea;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.team-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.member-avatar i {
    font-size: 2rem;
    color: white;
}

.team-member h4 {
    font-size: 1.1rem;
    font-weight: 600;
    /* color: #333; */
    line-height: 1.4;
}

.team-member p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}


.footer-section p {
    color: #ccc;
    /* line-height: 1.6;  */
}

.footer-bottom {
    text-align: center;
    /* padding-top: 2rem; */
    /* border-top: 1px solid #333; */
    color: #999;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* murilo */

.nav {
    display: flex;
    gap: 20px; /* Espaço entre links */
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .result-content {
        grid-template-columns: 1fr;
    }
    
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
    }

    .dashboard-box1 {
        width: 100%;
    }
    .dashboard-box2 {
        width: 100%;
    }
    .dashboard-prediction-card{
        font-size: 1rem;
    }

    .linha-horizontal{
        font-size: 50px;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .button-entrar {
        margin-top: 1rem;
        text-align: center;
    }
    
    /* Layout mobile */
    .system-section {
        padding: 120px 0 60px;
    }
    
    .system-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .system-buttom {
        display: flex;
        justify-content: center;
    }
    
    .system-content-text {
        order: 1;
    }
    
    .system-image {
        order: 2;
    }
    
    .system-icon {
        max-width: 280px;
    }

    .feature {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 1rem;
    }
    
    .features-form-content h3 {
        margin: 0 0 1rem 0;
        font-size: 1.3rem;
        font-weight: 600;
        color: #333;
    }

    .features-form-content ul {
        list-style: none;
        padding: 0;
        text-align: left;
        margin: 0 auto;
    }

    .features-form-content li {
        padding: 0.25rem 0;
        color: #666;
        position: relative;
        padding-left: 1rem;
    }

    .features-form-content li::before {
        content: '•';
        color: #667eea;
        font-weight: bold;
        position: absolute;
        left: 0;
    }
        
    
    /* Seções mobile */
    .about-section,
    .importance-section,
    .features-inf,
    .team-section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .importance-context-form-IMC{
        grid-template-columns: 1fr; 
        gap: 2rem;
    }

    .importance-context-form-IA {
        display: flex;
        flex-direction: column-reverse;
        grid-template-columns: 1fr; 
        gap: 2rem;
    }


    .importance-context-imc h3,
    .importance-context-IA h3 {
        text-align: center;
    }

    .p-text {
        text-align: center;
        line-height: 1.7;
        color: #666;
    }

    .importance-imc-point p{
        color: #666;
    }
    
    .importance-context-form:nth-child(odd) {
        direction: ltr;
    }

    .data-secret{
        text-align: center;
    }
    
    .importance-icon {
        max-width: 200px;
    }

    .importance-text-form{
        text-align: center;
    }
    
    .features-orient-left,
    .features-orient-right {
        justify-content: center;
    }
    
    .features-form {
        flex-direction: column;
        text-align: center;
        max-width: 80%;
    }
    
    .features-icon {
        width: 100px;
        height: 100px;
    }
    
    .team-grid {
        /* grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); */
        gap: 1.5rem;
    }
    
    .architecture-diagram {
        gap: 0.5rem;
    }
    
    .layer {
        min-width: 200px;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .arrow-down {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .progress-indicator {
        gap: 0.5rem;
    }
    
    .progress-step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .dashboard-prediction-card h2{
        font-size: 0.5rem;
    }

    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .system-icon {
        max-width: 240px;
        
    }

    .system-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .system-buttom {
        display: flex;
        justify-content: center;
    }

    .features-form-content h3 {
        margin: 0 0 1rem 0;
        font-size: 1.3rem;
        font-weight: 600;
        color: #333;
    }

    .features-form-content ul {
        list-style: none;
        padding: 0;
        text-align: left;
        margin: 0 auto;
    }

    .features-form-content li {
        padding: 0.25rem 0;
        color: #666;
        position: relative;
        padding-left: 1rem;
    }

    .features-form-content li::before {
        content: '•';
        color: #667eea;
        font-weight: bold;
        position: absolute;
        left: 0;
    }
        
    
    .features-form {
        padding: 1rem;
        max-width: 100%;
    }

    
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .layer {
        min-width: 180px;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .importance-imc-point {
        gap: 0.5rem;
    }
    
    .importante-imc-icon {
        width: 20px;
        height: 20px;
    }

    .importance-context-imc p,
    .importance-context-IA p {
        line-height: 1.7;
        color: #666;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}


.user-profile {
    position: relative;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667EEA;
}

.user-name {
    font-size: 1rem;
    color: #333;
}

.user-dropdown {
    display: none; /* Escondido por padrão */
    position: absolute;
    top: 100%; /* Aparece abaixo do user-info */
    right: 0; /* Alinhado à direita do user-info */
    background: #F8F7FC;
    width: max-content; /* Largura ajustada ao conteúdo */
    min-width: 150px; /* Largura mínima para consistência */
}

.user-info:hover + .user-dropdown,
.user-dropdown:hover {
    display: block; /* Mostra o dropdown ao passar o mouse */
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background-color: #e8e8e8; /* Leve destaque ao passar o mouse */
}

.dashboard {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height:100vh;
    background-color: #F3F3F3;
    border-top: 73px solid rgba(89, 36, 235, 0.905);
    flex-wrap: wrap
}

.dashboard-box1 {
    flex-direction: column;
    height: 700px;
    background-color: #F3F3F3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding-left: 150px;
}

.dashboard-box2 {
    flex-direction: column;
    height: 700px;
    background-color: #F3F3F3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 2;
    padding-right: 150px;
}

.user-card {
    width: 95%;
    padding-top: 40px;
    padding-bottom: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.user-img-card {
    width: 200px;
    height: auto;
    border-radius: 20rem;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid #667EEA;
}

.dashboard-info-card {
    margin-top: 20px;
    width: 95%;
    padding: 15px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.dashboard-info-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.dashboard-prediction-card {
    margin-top: 20px;
    width: 95%;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden;          /* evita que os filhos "vazem" */
}


.dashboard-prediction-card h3 {
    font-size: 1.8rem;
    color: #000000;
    text-align: left;
    font-weight: normal;
}

.dashboard-prediction-card h2 {
    font-size: 3rem;
    text-align: center;
}

.linha-horizontal {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.circle {
  width: 70px;
  height: 70px;
  background-color: #ccc;
  border-radius: 50%;
}

/* Cores para cada nível de obesidade */
.circle.Abaixo_do_peso {
    background-color: #87CEEB; /* Azul claro para abaixo do peso */
}

.circle.Peso_normal {
    background-color: #32CD32; /* Verde para peso normal */
}

.circle.Sobrepeso_Grau_I {
    background-color: #FFD700; /* Amarelo para sobrepeso grau I */
}

.circle.Sobrepeso_Grau_II {
    background-color: #FFA500; /* Laranja para sobrepeso grau II */
}

.circle.Obesidade_Grau_I {
    background-color: #FF4500; /* Laranja escuro para obesidade grau I */
}

.circle.Obesidade_Grau_II {
    background-color: #DC143C; /* Vermelho claro para obesidade grau II */
}

.circle.Obesidade_Grau_III {
    background-color: #8B0000; /* Vermelho escuro para obesidade grau III */
}

/* Grafico */
.dashboard-prediction-grafico {
    width: 95%;
    margin-top: 20px;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.dashboard-prediction-grafico h3 {
    font-size: 1.5rem;
    color: #181818;
    text-align: left;
    font-weight: normal;
    margin-bottom: 20px;
}

#graficoLinha {
  width: 100% !important;
  max-width: 1000px !important; /* controla a largura */
  height: 300px !important; /* controla a altura */
  display: block;
  margin: 0 auto;
}

/* Login and Register Page  */

#login-area {
    background: #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
}

/* O container principal */
.hero-content-login {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.2);
    position: relative; 
    overflow: hidden; 
    width: 900px; /* Largura fixa */
    max-width: 100%;
    min-height: 540px; /* Altura fixa */
}

/* Style para ambos os formulários */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    transition: all 0.6s ease-in-out;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.form-card-login {
    width: 100%;
    padding: 2rem;
}

/* Posicionamento inicial dos formulários */
.login-container {
    left: 0;
    z-index: 2; /* Fica na frente no início */
}

.register-container {
    left: 0;
    opacity: 0; /* Começa invisível */
    z-index: 1;
}

/* --- Painel deslizante (transição) --- */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%; /* Começa na metade direita */
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100; /* Fica na frente de tudo */
}

.overlay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%; /* O dobro da largura para poder deslizar */
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    text-align: center;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%); /* Começa um pouco fora da tela */
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

/* Botão "fantasma" para o overlay */
.btn.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
    border-width: 2px;
}

/* --- ANIMAÇÃO --- */
/* Quando o container tiver a classe .right-panel-active... */

/* 1. Mova o formulário de Login para a esquerda (e para trás) */
.hero-content-login.right-panel-active .login-container {
    transform: translateX(100%);
    opacity: 0;
}

/* 2. Traga o formulário de Registro para a frente */
.hero-content-login.right-panel-active .register-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

/* 3. Mova o Overlay para a esquerda */
.hero-content-login.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

/* 4. Mova o conteúdo do Overlay para compensar */
.hero-content-login.right-panel-active .overlay {
    transform: translateX(50%);
}

.hero-content-login.right-panel-active .overlay-left {
    transform: translateX(0);
}

.hero-content-login.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* Seus estilos de formulário (mantidos) */
.form-group-login label{ display: flex; margin-bottom: 1.5rem; border: 2px solid #e1e5e9; border-radius: 10px; align-items: center; }
.form-group-login .bi{ font-size: 19px; padding-left: 10px; }
.form-group-login input{ width: 100%; padding: 0.75rem 1rem; border: none; border-radius: 10px; font-size: 1rem; background: transparent; }
.form-group-login input:focus {
    outline: none;
}
.form-group-login label:focus-within {
    border-color: #80bdff; 
    box-shadow: 0 0 5px rgba(1, 20, 40, 0.5); 
}
.form-navigation-login{ display: flex; justify-content: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #e1e5e9; }

/* MANUS RESPONSIVE CODE */
.mobile-form-toggle {
    display: none;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mobile-toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    /* color: #667eea; */
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mobile-toggle-btn.active {
    /* background: #667eea; */
    color: #667eea;
}


/* Menu Hambúrguer para Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav .nav-link:last-child {
    border-bottom: none;
}

/* Hero Form Page */
#home-form{
    background-color: #f3f3f3;
}

/* carregamento */

#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9); 
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9999;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .progress-indicator {
        gap: 0.5rem;
    }
    
    .progress-step {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    .dashboard-prediction-card h2{
        font-size: 1.8rem;
    }

    .dashboard-prediction-card h3{
        font-size: 1.2rem;
    }

    .circle {
        width: 40px;
        height: 40px;
        background-color: #ccc;
        border-radius: 50%;
    }
}


@media screen and (max-width: 768px) {
    .dashboard-box1 {
        width: 100%;
        padding-left: 0;
    }
    .dashboard-box2 {
        width: 100%;
        padding-right: 0;
    }
    .circle {
        width: 50px;
        height: 50px;
        background-color: #ccc;
        border-radius: 50%;
    }
    
}

@media screen and (max-width: 1200px) {
    .dashboard-box1 {
        width: 100%;
        padding-left: 0;
    }
    .dashboard-box2 {
        width: 100%;
        padding-right: 0;
    }
    
}





/* CODIGO MANUS */
/* Mobile - Principal adaptação para < 768px */
@media (max-width: 768px) {
    /* Header responsivo */
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    /* Container principal - layout mobile */
    .hero-content-login {
        width: 95%;
        max-width: 400px;
        min-height: auto;
        margin: 1rem;
        position: relative;
        overflow: visible;
    }
    
    /* Desabilitar efeito overlay em mobile */
    .form-container {
        position: static;
        width: 100%;
        height: auto;
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }
    
    .login-container,
    .register-container {
        display: none;
    }
    
    .login-container.mobile-active,
    .register-container.mobile-active {
        display: flex;
    }
    
    /* Ocultar overlay em mobile */
    .overlay-container {
        display: none;
    }
    
    /* Mostrar botões de alternância em mobile */
    .mobile-form-toggle {
        display: flex;
    }
    
    /* Ajustes de formulário para mobile */
    .form-card-login {
        padding: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .form-group-login input {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .btn {
        padding: 0.875rem 2rem;
        justify-content: center;
    }
    
    /* Ajustes gerais para mobile */
    .hero {
        padding: 100px 0 40px;
    }

    .dashboard-info-card h3 {
        font-size: 1.3rem;
    }

    .user-img-card {
        width: 200px;
        height: auto;
        border-radius: 10rem
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Form rows em coluna única */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Navegação de formulário em coluna */
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation-login {
        margin-top: 1.5rem;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .hero-content-login {
        width: 98%;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .form-card-login {
        padding: 1rem;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .mobile-toggle-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .form-group-login .bi {
        font-size: 16px;
        padding-left: 8px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .logo h1 {
        font-size: 1rem;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
}

/* Landscape em dispositivos móveis */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 20px;
    }
    
    .hero-content-login {
        margin: 0.5rem;
    }
    
    .form-card-login {
        padding: 1rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 320px) {
    .hero-content-login {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .form-card-login {
        padding: 0.75rem;
    }
    
    .mobile-form-toggle {
        gap: 0.5rem;
    }
    
    .mobile-toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px){
    .hero-content-login {
        width: 700px;
    }   

    .hero-title {
        font-size: 2.5rem;
        font-weight: 700;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/*Responsividade do forms para celular*/
@media (max-width: 500px){
    body {
        overflow-x: hidden; 
    }

    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 120px 15px 80px 15px; 
        box-sizing: border-box; 
    }

    .hero-form-container {
        width: 100%;
        max-width: 650px;
    }
    
    
}