/* Estilos específicos para la página Mi Progreso */

.progress-container {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.progress-container:hover {
    transform: translateY(-5px);
}

.achievement-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    transition: transform 0.2s;
    cursor: pointer;
}

.achievement-badge:hover {
    transform: scale(1.1);
}

.badge-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.badge-locked {
    filter: grayscale(1);
    opacity: 0.5;
}

.badge-icon i {
    font-size: 32px;
    color: white;
}

.badge-title {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

.badge-primary { background: linear-gradient(45deg, #4776e6, #8e54e9); }
.badge-success { background: linear-gradient(45deg, #2fd887, #3eb489); }
.badge-info { background: linear-gradient(45deg, #17a2b8, #00d4ff); }
.badge-warning { background: linear-gradient(45deg, #ffc107, #ff9800); }
.badge-danger { background: linear-gradient(45deg, #ff416c, #ff4b2b); }

.level-progress {
    position: relative;
    height: 80px;
    margin: 40px 0;
}

.level-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    position: relative;
    margin-top: 10px;
}

.level-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(to right, #4776e6, #8e54e9);
    transition: width 1s ease-in-out;
}

.level-marker {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    text-align: center;
}

.level-marker .level-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 5px;
}

.level-marker.active .level-num {
    background: linear-gradient(45deg, #4776e6, #8e54e9);
    color: white;
    border-color: white;
}

.chart-container {
    position: relative;
    margin: auto;
    height: 300px;
}

.streak-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.streak-days {
    display: flex;
    margin: 15px 0;
}

.streak-day {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
}

.streak-day.active {
    background: linear-gradient(45deg, #4776e6, #8e54e9);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.streak-fire {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.streak-fire i {
    font-size: 24px;
    color: #ff9800;
    margin-right: 8px;
}

.streak-count {
    font-size: 1.2rem;
    font-weight: 700;
}

.achievement-tooltip {
    position: absolute;
    background-color: #ffffff;
    color: #1a1a2e;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 100;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.achievement-badge:hover .achievement-tooltip {
    opacity: 1;
}

.progress-expected {
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: #28a745;
    top: 0;
    z-index: 10;
}

.progress-expected:after {
    content: "Meta 70%";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    white-space: nowrap;
    color: #28a745;
    font-weight: bold;
}

.stat-card {
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

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

.stat-card-primary {
    background: linear-gradient(135deg, #e8f4fc 0%, #d1e9f6 100%);
    color: #1a365d;
    border: 1px solid #bee3f8;
}

.stat-card-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.stat-card-info {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #006064;
    border: 1px solid #80deea;
}

.stat-card-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #e65100;
    border: 1px solid #ffe082;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.recommendations-list {
    list-style-type: none;
    padding: 0;
}

.recommendation-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.recommendation-item:hover {
    background-color: #e9ecef;
}

.recommendation-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.recommendation-text {
    flex-grow: 1;
}

.recommendation-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.recommendation-desc {
    font-size: 0.9rem;
    color: #6c757d;
}

.progress-animation {
    animation: progress-anim 1s ease-out;
}

@keyframes progress-anim {
    from { width: 0; }
    to { width: var(--progress-width); }
}

.teen-theme {
    font-family: 'Poppins', sans-serif;
}

.teen-theme .card {
    border: none;
    border-radius: 15px;
}

.teen-theme .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.teen-theme .nav-tabs {
    border-bottom: none;
}

.teen-theme .nav-tabs .nav-link {
    border-radius: 50px;
    border: none;
    padding: 8px 16px;
    margin-right: 8px;
    color: #6c757d;
    font-weight: 600;
    transition: all 0.3s;
}

.teen-theme .nav-tabs .nav-link.active {
    color: white;
    background: linear-gradient(45deg, #4776e6, #8e54e9);
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.bg-warning-light {
    background-color: #fff8e6;
}

.trend-line {
    border-top: 2px dashed #28a745;
    position: absolute;
    width: 100%;
}

.meaai-card {
    transition: all 0.3s ease;
}

.meaai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.icon-circle {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

.progress {
    border-radius: 10px;
    overflow: hidden;
    background-color: #e9ecef;
}

.tooltip-custom {
    position: relative;
    display: inline-block;
}

.tooltip-custom .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-custom:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.loading {
    position: relative;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.7);
    z-index: 100;
    border-radius: inherit;
}