/* Estilos principales de la app */
.fuelup-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Header */
.fuelup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e6ef;
}

.fuelup-header h1 {
    color: #2d3748;
    margin: 0;
    font-size: 28px;
}

.fuelup-header h1 i {
    color: #4299e1;
    margin-right: 10px;
}

.fuelup-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fuelup-username {
    font-weight: 600;
    color: #4a5568;
}

/* Botones principales */
.fuelup-main-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.fuelup-main-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fuelup-main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4299e1;
}

.fuelup-main-btn i {
    font-size: 40px;
    margin-bottom: 5px;
}

.fuelup-main-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

/* Colores específicos para cada módulo */
.fuelup-nutrition-btn i { color: #48bb78; }
.fuelup-fitness-btn i { color: #ed8936; }
.fuelup-mind-btn i { color: #9f7aea; }
.fuelup-progress-btn i { color: #4299e1; }

/* Resumen de progreso */
.fuelup-progress-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.fuelup-summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.fuelup-summary-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 16px;
}

.fuelup-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.fuelup-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.fuelup-summary-card:nth-child(1) .fuelup-progress-fill { background: #48bb78; }
.fuelup-summary-card:nth-child(2) .fuelup-progress-fill { background: #ed8936; }
.fuelup-summary-card:nth-child(3) .fuelup-progress-fill { background: #9f7aea; }

.fuelup-progress-text {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

/* Actividad reciente */
.fuelup-recent-activity {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.fuelup-recent-activity h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 18px;
}

.fuelup-activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.fuelup-activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
}

.fuelup-activity-item:last-child {
    border-bottom: none;
}

.fuelup-activity-item i {
    font-size: 18px;
    width: 30px;
    text-align: center;
}

.fuelup-activity-item.nutrition i { color: #48bb78; }
.fuelup-activity-item.fitness i { color: #ed8936; }
.fuelup-activity-item.mind i { color: #9f7aea; }

.fuelup-activity-text {
    flex: 1;
    color: #4a5568;
}

.fuelup-activity-date {
    font-size: 12px;
    color: #a0aec0;
}

/* Modales */
.fuelup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.fuelup-modal.active {
    display: flex;
}

.fuelup-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fuelup-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.fuelup-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.fuelup-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fuelup-modal-body {
    padding: 30px;
}

.fuelup-modal-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.fuelup-sub-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fuelup-sub-btn:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
}

.fuelup-sub-btn i {
    font-size: 30px;
    margin-bottom: 5px;
}

.fuelup-sub-btn:nth-child(1) i { color: #48bb78; }
.fuelup-sub-btn:nth-child(2) i { color: #ed8936; }
.fuelup-sub-btn:nth-child(3) i { color: #9f7aea; }
.fuelup-sub-btn:nth-child(4) i { color: #4299e1; }

.fuelup-sub-btn span {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
}

/* Submodal */
.fuelup-submodal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.fuelup-submodal.active {
    display: flex;
}

.fuelup-submodal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.fuelup-submodal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
    border-radius: 15px 15px 0 0;
}

.fuelup-submodal-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 18px;
}

.fuelup-submodal-close {
    background: none;
    border: none;
    color: #718096;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fuelup-submodal-body {
    padding: 30px;
}

/* Formularios */
.fuelup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fuelup-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fuelup-form-label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.fuelup-form-input,
.fuelup-form-select,
.fuelup-form-textarea {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.fuelup-form-input:focus,
.fuelup-form-select:focus,
.fuelup-form-textarea:focus {
    outline: none;
    border-color: #4299e1;
}

.fuelup-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.fuelup-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fuelup-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 10px;
}

.fuelup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fuelup-btn-primary {
    background: #4299e1;
    color: white;
}

.fuelup-btn-primary:hover {
    background: #3182ce;
}

.fuelup-btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.fuelup-btn-secondary:hover {
    background: #cbd5e0;
}

/* Mensajes */
.fuelup-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fuelup-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.fuelup-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.fuelup-message i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .fuelup-main-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fuelup-modal-buttons {
        grid-template-columns: 1fr;
    }
    
    .fuelup-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fuelup-main-buttons {
        grid-template-columns: 1fr;
    }
    
    .fuelup-progress-summary {
        grid-template-columns: 1fr;
    }
    
    .fuelup-form-actions {
        flex-direction: column;
    }
    
    .fuelup-form-actions .fuelup-btn {
        width: 100%;
        justify-content: center;
    }
}