/* =========================================
   PAGINA PROGRESO — V2 Glassmorphism
   ========================================= */

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESUMEN CARD ===== */
.summary-card {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: clamp(20px, 5vw, 25px);
    margin-bottom: 16px;
    animation: slideUp 0.4s ease-out;
}

.summary-title {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: clamp(16px, 4vh, 20px);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.summary-title svg {
    width: 22px;
    height: 22px;
    stroke: rgba(255, 255, 255, 0.7);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vh, 20px) clamp(10px, 2.5vw, 14px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    transition: all 0.25s ease;
}

.summary-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.summary-value {
    font-size: clamp(28px, 7vw, 34px);
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.summary-label {
    font-size: clamp(11px, 2.8vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===== FILTROS CARD ===== */
.filters-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    margin-bottom: 16px;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.filters-header {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    padding: clamp(14px, 3.5vw, 16px) clamp(18px, 4.5vw, 22px);
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.filters-header svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.7);
}

.filters-body {
    padding: clamp(16px, 4vw, 20px);
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 3.5vw, 18px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group-label {
    font-size: clamp(11px, 2.8vw, 12px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.filter-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: clamp(12px, 3vw, 14px) clamp(8px, 2vw, 10px);
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    transition: all 0.25s ease;
    min-height: clamp(72px, 18vw, 82px);
    position: relative;
    cursor: pointer;
}

.filter-btn svg {
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
    stroke: rgba(255, 255, 255, 0.5);
    transition: all 0.25s ease;
}

.filter-btn span {
    font-size: clamp(11px, 2.8vw, 12px);
    text-align: center;
}

.filter-count {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(10px, 2.5vw, 11px);
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn:hover svg {
    stroke: white;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.filter-btn.active svg {
    stroke: white;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Estado especial: Mejorando */
.filter-btn.mejorando.active {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.5);
    color: #6ee7a0;
}

.filter-btn.mejorando.active svg {
    stroke: #6ee7a0;
}

.filter-btn.mejorando.active .filter-count {
    background: rgba(40, 167, 69, 0.3);
    color: #6ee7a0;
}

/* Estado especial: Estable */
.filter-btn.estable.active {
    background: rgba(180, 180, 190, 0.2);
    border-color: rgba(180, 180, 190, 0.45);
    color: rgba(255, 255, 255, 0.75);
}

.filter-btn.estable.active svg {
    stroke: rgba(255, 255, 255, 0.6);
}

.filter-btn.estable.active .filter-count {
    background: rgba(180, 180, 190, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

/* ===== SORT WRAPPER ===== */
.sort-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sort-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 1;
}

.chevron-icon {
    position: absolute;
    right: 14px;
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease;
}

.sort-dropdown {
    width: 100%;
    padding: 12px 42px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(13px, 3.2vw, 14px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.sort-dropdown:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.sort-dropdown:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.sort-dropdown:focus ~ .chevron-icon,
.sort-wrapper:focus-within .chevron-icon {
    transform: rotate(180deg);
}

.sort-dropdown option {
    background: #3d6a8e;
    color: white;
    font-weight: 600;
    padding: 10px;
}

/* ===== RESULTS COUNTER ===== */
.results-counter {
    padding: 0 16px 12px;
    text-align: center;
    font-size: clamp(12px, 3vw, 13px);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ===== PROGRESS CARDS ===== */
.progress-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    padding: clamp(18px, 4.5vw, 22px);
    margin-bottom: 12px;
    transition: all 0.25s ease;
    position: relative;
    animation: slideUp 0.5s ease-out;
}

.progress-card::before {
    display: none;
}

.progress-card:hover,
.progress-card:active {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: clamp(12px, 3vh, 15px);
    gap: 12px;
}

.progress-info {
    flex: 1;
}

.exercise-name {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.exercise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: clamp(11px, 2.8vw, 12px);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.meta-item svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
}

/* ===== PROGRESS CIRCLE ===== */
.progress-circle-container {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.progress-circle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.progress-percentage {
    font-size: 15px;
    font-weight: 700;
    color: white;
    line-height: 1;
    white-space: nowrap;
}

.progress-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    font-weight: 600;
    text-transform: lowercase;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: clamp(12px, 3vh, 15px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
    text-align: center;
    padding: clamp(8px, 2vh, 10px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.stat-value {
    font-size: clamp(17px, 4.3vw, 19px);
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
    line-height: 1;
}

.stat-label {
    font-size: clamp(10px, 2.5vw, 11px);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ===== CARD ACTIONS ===== */
.card-actions {
    display: flex;
    gap: 8px;
    margin-top: clamp(12px, 3vh, 15px);
}

.btn-detail {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    padding: clamp(10px, 2.5vh, 12px) clamp(14px, 3.5vw, 16px);
    border-radius: 14px;
    font-size: clamp(13px, 3.2vw, 14px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: none;
}

.btn-detail:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.btn-detail svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

/* ===== EMPTY STATE ===== */
.btn-biblioteca {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: clamp(12px, 3vh, 14px) clamp(24px, 6vw, 28px);
    border-radius: 20px;
    font-size: clamp(14px, 3.5vw, 15px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: none;
}

.btn-biblioteca:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.btn-biblioteca svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* ===== RESPONSIVE — Movil pequeno ===== */
@media (max-width: 360px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .summary-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 16px;
    }

    .filter-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .filter-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 16px;
        min-height: auto;
        gap: 12px;
    }

    .filter-btn svg {
        width: 20px;
        height: 20px;
    }

    .filter-count {
        position: static;
        margin-left: auto;
    }
}

@media (min-width: 768px) {
    .progress-card:hover {
        transform: translateY(-3px);
    }
}

/* ===== DETALLE PROGRESO ===== */
.progress-detail-page {
    padding: 0 4px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-header h2 {
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.btn-back {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

/* Detalle: Stats grid (4 columnas) */
.progress-detail-page .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
    border-top: none;
    padding-top: 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
}

.stat-card .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.stat-card .stat-value {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.stat-card.highlight {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
}

.stat-card.positive .stat-value {
    color: #6ee7a0;
}

.stat-card.negative .stat-value {
    color: #f87171;
}

/* Detail card */
.detail-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 16px;
}

.detail-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.detail-section-title {
    font-size: clamp(15px, 3.8vw, 17px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: clamp(14px, 3.5vh, 18px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-title svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.6);
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-top: 16px;
    font-size: 14px;
}

.progress-indicator.success {
    background: rgba(40, 167, 69, 0.15);
    color: #6ee7a0;
    border: 1.5px solid rgba(40, 167, 69, 0.3);
}

.progress-indicator svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== HISTORIAL ===== */
.history-section {
    margin-top: 16px;
}

.history-section h3 {
    font-size: clamp(15px, 3.8vw, 17px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-date-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.history-date-header svg,
.history-date-header i {
    color: rgba(255, 255, 255, 0.5);
}

.history-date-header svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.5);
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.2s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.history-set,
.history-date .set {
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
}

.history-details,
.history-detail {
    display: flex;
    gap: 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
}

.history-reps {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.history-weight,
.history-detail .weight {
    color: white;
    font-weight: 700;
}

.empty-history {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* ===== CASCADE OVERRIDES — .progreso-page scope ===== */
.progreso-page .summary-card {
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.progreso-page .summary-value {
    font-size: clamp(28px, 7vw, 34px);
    font-weight: 700;
    color: white;
    line-height: 1;
}

.progreso-page .summary-label {
    font-size: clamp(11px, 2.8vw, 13px);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.progreso-page .filters-card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.progreso-page .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progreso-page .stat-value {
    font-size: clamp(17px, 4.3vw, 19px);
    font-weight: 700;
    color: white;
}

.progreso-page .stat-label {
    color: rgba(255, 255, 255, 0.5);
}

/* Override admin-usuarios.css mobile breakpoint that forces 2 columns */
.progreso-page .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: clamp(12px, 3vh, 15px);
}

/* Override gestion-entrenamientos.css and progreso-alumnos.css cascades */
.progreso-page .exercise-name {
    color: white !important;
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 700;
}

/* =========================================
   PAGINA DETALLE PROGRESO — Glassmorphism
   Scoped under .progress-detail-page
   ========================================= */

.progress-detail-page {
    padding: clamp(16px, 4vw, 24px);
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    max-width: 600px;
    margin: 0 auto;
}

.progress-detail-page .detail-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.progress-detail-page .detail-header h2 {
    color: white;
    font-size: clamp(18px, 4.5vw, 22px);
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.progress-detail-page .btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.progress-detail-page .btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
}

.progress-detail-page .btn-back i {
    font-size: 18px;
    color: white;
}

.progress-detail-page .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 16px;
    border-top: none !important;
    padding-top: 0 !important;
}

.progress-detail-page .stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.progress-detail-page .stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.progress-detail-page .stat-value {
    color: white;
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.progress-detail-page .stat-card.highlight {
    background: rgba(255, 255, 255, 0.18);
}

.progress-detail-page .stat-card.positive {
    border-color: rgba(16, 185, 129, 0.3);
}

.progress-detail-page .stat-card.negative {
    border-color: rgba(239, 68, 68, 0.3);
}

.progress-detail-page .detail-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.progress-detail-page .detail-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin: 0;
}

.progress-detail-page .history-section {
    margin-top: 8px;
}

.progress-detail-page .history-section h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.progress-detail-page .history-date-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-detail-page .history-date-header i {
    color: rgba(255, 255, 255, 0.4);
}

.progress-detail-page .history-list {
    display: flex;
    flex-direction: column;
}

.progress-detail-page .history-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-detail-page .history-item:last-child {
    border-bottom: none;
}

.progress-detail-page .history-date .set {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.progress-detail-page .history-detail {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
}

.progress-detail-page .history-detail span {
    color: white;
    font-size: 14px;
}

.progress-detail-page .history-detail .weight {
    font-weight: 700;
}

/* ===== DETALLE: Empty State ===== */
.progress-detail-page .empty-state {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 40px 24px;
    text-align: center;
}

.progress-detail-page .empty-state h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.progress-detail-page .empty-state p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    margin-bottom: 20px;
}

.progress-detail-page .empty-state .btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.progress-detail-page .empty-state .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===== DETALLE: Loading Spinner ===== */
.progress-detail-page .loading-container {
    padding: 60px 24px;
    text-align: center;
}

.progress-detail-page .loading-container .loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: white;
}

.progress-detail-page .loading-container .loading-message {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    margin-top: 12px;
}
