/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* Esconder barra de navegador em modo standalone/fullscreen */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Fix para iOS - esconder barra de navegação */
    -webkit-touch-callout: none;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    height: 100%;
    width: 100%;
    color: #333;
    padding-bottom: 80px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Esconder barra de navegador em modo standalone/fullscreen */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-overflow-scrolling: touch;
    /* Fix para iOS - prevenir zoom e esconder barra */
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}





/* Para dispositivos móveis em modo app */
.mobile-app {
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

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


.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #212322;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #999;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    max-width: 90px;
}

.nav-btn::before {
    content: '';
    width: 25px;
    height: 25px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.nav-btn[data-section="dashboard"]::before {
    background-image: url('../imagens/home-gold.png');
}

.nav-btn[data-section="dashboard"].active::before {
    background-image: url('../imagens/home-dark.png');
}

.nav-btn[data-section="profile"]::before,
.nav-btn[data-nav="perfil"]::before {
    background-image: url('../imagens/user-gold.png');
}

.nav-btn[data-section="profile"].active::before,
.nav-btn[data-nav="perfil"]::before {
    background-image: url('../imagens/user-dark.png');
}

.nav-btn[data-nav="perfil"] {
    text-decoration: none;
    color: #999;
}

.nav-btn[data-nav="perfil"]:hover {
    color: #EDC259;
}

.nav-btn[data-section="diet"]::before {
    background-image: url('../imagens/deita-gold.png');
}

.nav-btn[data-section="diet"].active::before {
    background-image: url('../imagens/dieta-dark.png');
}

.nav-btn[data-section="workout"]::before {
    background-image: url('../imagens/treino-gold.png');
}

.nav-btn[data-section="workout"].active::before {
    background-image: url('../imagens/treino-dark.png');
}

.nav-btn[data-section="progress"]::before {
    background-image: url('../imagens/progre-gold.png');
}

.nav-btn[data-section="progress"].active::before {
    background-image: url('../imagens/progre-dark.png');
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn.active {
    color: #212322;
    font-weight: 700;
    background-color: #EDC259;
    border-radius: 5px;
}

.nav-btn.active::before {
    opacity: 1;
    transform: scale(1.05);
}

.main-content {
    background: #f5f5f5;
    border-radius: 0;
    padding: 15px;
    min-height: calc(100vh - 140px);
}







.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #212322;
    border-radius: 0 0 15px 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(237, 194, 89, 0.3);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

/* Adicionar padding-top apenas no header quando estiver em modo standalone no iOS */
@media (display-mode: standalone) {
    @supports (-webkit-touch-callout: none) {
        .header {
            padding-top: calc(15px + env(safe-area-inset-top, 0px));
            top: 0;
        }
    }
}

/* Alternativa: se detectar via classe ou atributo */
html[data-standalone="true"] .header,
html.ios-standalone .header {
    padding-top: calc(15px + env(safe-area-inset-top, 0px));
    top: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #D9BC5E;
}

.logo-image {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 1.0));
    height: 60px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    /* mantém a proporção da imagem */
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}


/* Main Content */
.main-content {
    background: white;
    border-radius: 20px;
    padding: 30px 0px;
    min-height: 600px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

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

.card {
    background: #FFFAF1;
    border-radius: 15px;
    padding: 25px 10px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.card h2 {
    text-shadow: 2px 2px 4px rgba(217, 188, 94, 0.6);
    color: #D9BC5E;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Forms */
.profile-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #212322;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    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: #EDC259;
    box-shadow: 0 0 0 3px rgb(237, 194, 89, 0.4);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #EDC259 0%, #EDC259 100%);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(217, 188, 94, 0.6);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Profile Results */
.profile-results {
    background: rgb(237 195 90 / 20%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #EDC259;
}

.profile-results h3 {
    color: #D9BC5E;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.result-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result-item .label {
    font-weight: 600;
    color: #212322;
}

.result-item .value {
    font-weight: 700;
    color: #EDC259;
    font-size: 1.1rem;
}

/* Diet Content */
.diet-content {
    display: grid;
    gap: 20px;
}

.meal-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.meal-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(237, 194, 89, 0.4);
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.meal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
}

.meal-calories {
    background: #EDC259;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.food-item:last-child {
    border-bottom: none;
}

.food-name {
    font-weight: 600;
    color: #333;
}

.food-amount {
    color: #666;
    font-size: 0.9rem;
}

/* Workout Content */
.workout-content {
    display: grid;
    gap: 25px;
}

.workout-plans {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workout-plan {
    background: white;
    border-radius: 15px;
    padding: 25px 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.workout-plan:hover {
    border-color: #EDC259;
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(237, 194, 89, 0.4);
}

.plan-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.plan-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212322;
}

.time-body {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px;
}

.plan-duration {
    background: #D9BC5E;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.exercise-list {
    display: grid;
    gap: 15px;
}

.exercise-item {
    background: #FFFAF1;
    flex-direction: column;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    transition: all 0.3s ease;
    gap: 10px;
}

.exercise-item:hover {
    background: rgb(237 195 90 / 20%);
    transform: translateX(5px);
}

.exercise-info {
    flex: 1;
}

.exercise-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.exercise-details {
    color: #666;
    font-size: 0.9rem;
}

.exercise-image-btn {
    background: #EDC259;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.exercise-image-btn:hover {
    background: #D9BC5E;
    transform: scale(1.05);
}

/* Progress Content */
.progress-content {
    display: grid;
    gap: 30px;
}

.progress-form {
    background: white;
    border-radius: 15px;
    padding: 15px;
    border: 2px solid #EDC259;
}

.progress-chart {
    background: white;
    border-radius: 15px;
    padding: 15px;
    border: 2px solid #EDC259;
}

.progress-stats {
    grid-column: 1 / -1;
    background: white;
    border-radius: 15px;
    padding: 15px;
    border: 2px solid #EDC259;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.stat-item {
    background: rgb(237 195 90 / 20%);
    padding: 15px 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-weight: 600;
    color: #666;
}

.stat-value {
    font-weight: 700;
    color: #212322;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 80vh;
    overflow: overlay;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #c72c27;
}

/* Exercise Demo */
.exercise-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.exercise-media {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exercise-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.exercise-info h3 {
    color: #D9BC5E;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.exercise-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.muscles-worked {
    background: rgb(237 195 90 / 20%);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #EDC259;
}

.exercise-tips h4 {
    color: #D9BC5E;
    margin-bottom: 10px;
}

.exercise-tips ul {
    list-style: none;
    padding: 0;
}

.exercise-tips li {
    background: rgb(237 195 90 / 20%);
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    border-left: 3px solid #EDC259;
}

/* Workout Header */
.workout-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgb(237 195 90 / 20%);
    border-radius: 15px;
    border: 2px solid #EDC259;
}

.level-info h3 {
    color: #EDC259;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.level-info p {
    color: #666;
    margin-bottom: 15px;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 25px;
    height: 25px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: rgb(237 195 90);
    height: 100%;
    border-radius: 25px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #212322;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.check-in-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.check-in-info {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Weekly Diet Styles */
.weekly-diet-header {
    flex-direction: column;
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #EDC259;
}

.weekly-diet-header h3 {
    color: #212322;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.weekly-diet-header p {
    color: #666;
    margin: 5px 0 0 0;
}

.weekly-diet-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.day-plan {
    background: white;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.day-plan:hover {
    border-color: #D9BC5E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 194, 89, 0.2);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.day-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.day-header h4 {
    color: #EDC259;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}


.day-calories {
    background: linear-gradient(135deg, #EDC259 0%, #D9BC5E 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 3px 8px rgba(237, 194, 89, 0.35);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.day-calories:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(237, 194, 89, 0.45);
}

/* Responsividade do day-plan */
@media (max-width: 768px) {
    .day-plan {
        padding: 16px;
        border-radius: 12px;
    }

    .day-header {
        margin-bottom: 12px;
        padding: 10px 12px;
        gap: 10px;
    }

    .day-header > div:first-child {
        gap: 10px;
        width: 100%;
    }

    .day-header h4 {
        font-size: 1.1rem;
        width: 100%;
    }

    .day-header h4::before {
        font-size: 1rem;
    }

    .day-calories {
        font-size: 0.85rem;
        padding: 6px 14px;
        align-self: flex-start;
    }


}

@media (max-width: 480px) {
    .day-plan {
        padding: 12px;
        border-radius: 10px;
    }

    .day-header {
        margin-bottom: 10px;
        padding: 8px 10px;
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .day-header > div:first-child {
        
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .day-header h4 {
        font-size: 1rem;
        width: 100%;
    }

    .day-header h4::before {
        font-size: 0.95rem;
    }

    .day-calories {
        font-size: 0.8rem;
        padding: 5px 12px;
        align-self: flex-start;
    }

}

.day-meals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 768px) {
    .day-meals {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .day-meals {
        gap: 8px;
    }
}

.meal-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #EDC259;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
}

.meal-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(237, 194, 89, 0.2);
    border-left-color: #D9BC5E;
}

.meal-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.meal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meal-name {
    font-weight: 700;
    color: #EDC259;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}



.meal-calories {
    background: linear-gradient(135deg, #EDC259 0%, #D9BC5E 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(237, 194, 89, 0.3);
    white-space: nowrap;
}

.food-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.food-name {
    font-weight: 600;
    color: #212322;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.food-amount {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    font-style: italic;
    word-wrap: break-word;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .meal-item {
        padding: 14px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .meal-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .meal-actions {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .meal-name {
        font-size: 0.9rem;
        width: 100%;
    }

    .meal-calories {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .food-details {
        gap: 5px;
        padding-top: 10px;
    }

    .food-name {
        font-size: 0.9rem;
    }

    .food-amount {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .meal-item {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .meal-info {
        gap: 8px;
    }

    .meal-actions {
        gap: 6px;
    }

    .meal-name {
        font-size: 0.85rem;
    }

    .meal-calories {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .food-details {
        padding-top: 8px;
    }

    .food-name {
        font-size: 0.85rem;
    }

    .food-amount {
        font-size: 0.75rem;
    }
}

/* Botão de trocar refeição */
.swap-meal-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    font-weight: 600;
    white-space: nowrap;
    min-width: 36px;
    justify-content: center;
}

.swap-meal-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%) !important;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

.swap-meal-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.3);
}

.swap-meal-btn i {
    font-size: 0.75rem;
}

/* Responsividade do botão de trocar refeição */
@media (max-width: 768px) {
    .swap-meal-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-width: 32px;
    }

    .swap-meal-btn i {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .swap-meal-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        min-width: 30px;
        gap: 3px;
    }

    .swap-meal-btn i {
        font-size: 0.65rem;
    }
}

/* Botão de atualizar dia inteiro */
.swap-day-btn {
    background: linear-gradient(135deg, #EDC259 0%, #D9BC5E 100%) !important;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(237, 194, 89, 0.3);
    white-space: nowrap;
}

.swap-day-btn:hover {
    background: linear-gradient(135deg, #D9BC5E 0%, #c9a84d 100%) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 12px rgba(237, 194, 89, 0.4);
}

.swap-day-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 4px rgba(237, 194, 89, 0.3);
}

.swap-day-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #cccccc !important;
}

.swap-day-btn i {
    font-size: 0.8rem;
}

/* Responsividade do botão de atualizar dia */
@media (max-width: 768px) {
    .swap-day-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 5px;
    }

    .swap-day-btn i {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .swap-day-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        gap: 4px;
        width: 100%;
        justify-content: center;
    }

    .swap-day-btn i {
        font-size: 0.7rem;
    }
}

/* AI Suggestions */
.ai-suggestions {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #2196f3;
}

.ai-suggestions h4 {
    color: #2196f3;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-suggestions li {
    background: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Notifications */
.level-up-notification,
.phase-change-notification,
.check-in-success,
.loading-notification,
.ai-notification,
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s ease;
    max-width: 400px;
}

.level-up-notification {
    border-left: 5px solid #FFD700;
}

.phase-change-notification {
    border-left: 5px solid #EDC259;
}

.check-in-success {
    border-left: 5px solid #EDC259;
}

.loading-notification {
    border-left: 5px solid #17a2b8;
}

.ai-notification {
    border-left: 5px solid #2196f3;
}

.error-notification {
    border-left: 5px solid #dc3545;
}

.notification-content {
    padding: 20px;
    text-align: center;
}

.notification-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.level-up-notification .notification-content i {
    color: #FFD700;
}

.phase-change-notification .notification-content i {
    color: #EDC259;
}

.check-in-success .notification-content i {
    color: #EDC259;
}

.loading-notification .notification-content i {
    color: #17a2b8;
}

.ai-notification .notification-content i {
    color: #2196f3;
}

.error-notification .notification-content i {
    color: #dc3545;
}

.notification-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.notification-content p {
    color: #666;
    margin-bottom: 15px;
}

.notification-content button {
    background: #EDC259;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.notification-content button:hover {
    background: #D9BC5E;
    transform: translateY(-2px);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

/* Info Message */
.info-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        height: 55px;
        max-width: 120px;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .exercise-demo {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .workout-header {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .level-up-notification,
    .phase-change-notification,
    .check-in-success,
    .loading-notification,
    .ai-notification,
    .error-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .weekly-diet-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .weekly-diet-plans {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8rem;
    }

    .logo i {
        font-size: 2rem;
    }

    .card h2 {
        font-size: 1.5rem;
    }

}





.workout-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background-color: #FFFAF1;
    border-radius: 8px;
    margin: 16px 0;
    padding: 5px;
}

.btn-option {
    padding: 12px 24px;
    font-weight: 500;
    color: #333;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    width: 100%;
}

.btn-option:hover {
    background-color: #212322;
    border-color: #EDC259;
    color: #EDC259;
    transform: translateY(-2px);
}

.btn-option.active {
    background-color: #212322;
    border-color: #EDC259;
    color: #EDC259;
    box-shadow: 0 4px 8px rgb(237, 194, 89, 0.3);
    font-weight: bold;

}

.btn-option:focus {
    outline: 2px solid #e7b128;
    outline-offset: 2px;
}

/* API Integration Notifications */
.api-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.api-notification-show {
    opacity: 1;
    transform: translateX(0);
}

.api-notification-content {
    background: white;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
}

.api-notification-success .api-notification-content {
    border-left-color: #28a745;
    background: #f0fff4;
}

.api-notification-error .api-notification-content {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.api-notification-warning .api-notification-content {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.api-notification-info .api-notification-content {
    border-left-color: #17a2b8;
    background: #f0f9ff;
}

.api-notification-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.api-notification-success .api-notification-icon {
    color: #28a745;
}

.api-notification-error .api-notification-icon {
    color: #dc3545;
}

.api-notification-warning .api-notification-icon {
    color: #ffc107;
}

.api-notification-info .api-notification-icon {
    color: #17a2b8;
}

.api-notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.api-notification-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.api-notification-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .api-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* IMC Info Dropdown Styles */
.imc-info-dropdown {
    width: 100%;
}

.imc-info-toggle {
    width: 100%;
    padding: 18px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #212322;
    text-align: left;
}

.imc-info-toggle:hover {
    border-color: #EDC259;
    background: #fffbf5;
    box-shadow: 0 2px 8px rgba(237, 194, 89, 0.2);
}

.imc-info-toggle.active {
    border-color: #EDC259;
    background: #fffbf5;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.imc-info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.imc-info-title i {
    color: #EDC259;
    font-size: 1.1rem;
}

.imc-info-title strong {
    color: #212322;
    font-weight: 700;
}

.imc-info-chevron {
    transition: transform 0.3s ease;
    color: #6c757d;
    font-size: 0.9rem;
}

.imc-info-toggle.active .imc-info-chevron {
    transform: rotate(180deg);
}

.imc-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: white;
    border: 2px solid #EDC259;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 0 20px;
}

.imc-info-content.active {
    max-height: 3000px;
    padding: 25px 20px;
}

.imc-info-section {
    margin-bottom: 20px;
}

.imc-info-current {
    margin: 25px 0;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid;
    animation: fadeIn 0.5s ease;
}

.imc-info-current[data-condition="abaixo-peso"] {
    background: #e6f7fa;
    border-left-color: #17a2b8;
}

.imc-info-current[data-condition="peso-normal"] {
    background: #e8f5e9;
    border-left-color: #28a745;
}

.imc-info-current[data-condition="sobrepeso"] {
    background: #fff8e1;
    border-left-color: #ffc107;
}

.imc-info-current[data-condition="obesidade-1"] {
    background: #ffebee;
    border-left-color: #dc3545;
}

.imc-info-current[data-condition="obesidade-2"] {
    background: #ffebee;
    border-left-color: #dc3545;
}

.imc-info-current[data-condition="obesidade-3"] {
    background: #ffcdd2;
    border-left-color: #c82333;
}

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

@media (max-width: 768px) {
    .imc-info-toggle {
        padding: 15px;
        font-size: 0.9rem;
    }

    .imc-info-content.active {
        padding: 20px 15px;
    }
}

