/* styles/progress.css */
.progress-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text, #f8fafc);
}

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

.progress-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-add-progress {
    background: var(--primary, #3b82f6);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-progress:hover {
    background: var(--primary-hover, #2563eb);
}

/* Grid Layout */
.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Cards */
.progress-card {
    background: var(--bg-card, rgba(30, 41, 59, 0.7));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.card-title {
    font-size: 1.1rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Goal Card */
.goal-main {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary, #3b82f6);
    margin-bottom: 5px;
}
.goal-meta {
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
}
.goal-focus {
    margin-top: 15px;
    font-style: italic;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

/* Stats */
.vital-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vital-stat:last-child {
    border-bottom: none;
}
.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}
.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }
.trend-neutral { color: #94a3b8; }

/* Measurements Grid */
.measures-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.measure-item {
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}
.measure-label {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 4px;
}
.measure-val {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Form Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.modal-overlay.show {
    display: flex;
}
.modal-content {
    background: #1e293b;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #cbd5e1;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Modal Buttons */
.btn {
    padding: 0 24px;
    height: 45px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary, #06b6d4);
    color: #fff;
    border-color: var(--primary, #06b6d4);
}
.btn-primary:hover {
    background: #0891b2;
    border-color: #0891b2;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ef4444;
    color: #fff; 
    border-color: #ef4444;
    margin-top: 9px; /* Ajuste final (bajado 0.5mm) */
}
.btn-secondary:hover {
    background: #dc2626; /* Un rojo un poco más oscuro al hacer hover */
    border-color: #dc2626;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .progress-grid {
        grid-template-columns: 1fr;
    }
}
