/* --- Estilos Generales --- */
.table-hover tbody tr:hover {
    background-color: #e9ecef;
}

/* --- Estilos para el Nuevo Login Atractivo --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

.login-page {
    font-family: 'Montserrat', sans-serif;
    background-image: url('../img/login-bg.jpg'); 
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}
.login-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.4), rgba(0, 0, 0, 0.8));
    z-index: 1;
}
.login-container {
    position: relative;
    z-index: 2;
    max-width: 450px;
    width: 100%;
}
.login-card {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    overflow: hidden;
}
.login-card .card-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
}
.login-card h3 { 
    font-weight: 700; 
    letter-spacing: -0.5px;
    color: #fff;
}
.login-card .card-header p { 
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.login-card .form-label { 
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.login-card .form-control { 
    background-color: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: white; 
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}
.login-card .form-control:focus { 
    background-color: rgba(255, 255, 255, 0.15); 
    border-color: #0d6efd; 
    color: white; 
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); 
}
.btn-premium {
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    border: none;
    border-radius: 10px;
    padding: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* --- Estilos para el Nuevo Panel de Administración con Sidebar --- */
:root {
    --sidebar-bg-color: #212529;
    --sidebar-link-color: rgba(255, 255, 255, 0.65);
    --sidebar-link-hover-color: #ffffff;
    --sidebar-link-active-color: #ffffff;
    --sidebar-width: 250px;
}
body.admin-panel {
    display: flex;
    background-color: #f8f9fa; /* Color de fondo para el área de contenido */
}
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg-color);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: all 0.3s;
}
.sidebar .nav-link {
    color: var(--sidebar-link-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
}
.sidebar .nav-link .fa-fw {
    width: 1.25em;
    margin-right: 0.5rem;
}
.sidebar .nav-link:hover {
    color: var(--sidebar-link-hover-color);
    background-color: rgba(255, 255, 255, 0.1);
}
.sidebar .nav-link.active {
    color: var(--sidebar-link-active-color);
    font-weight: bold;
    background-color: #0d6efd; /* Color primario de Bootstrap */
}
.sidebar-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 2rem;
    width: calc(100% - var(--sidebar-width));
}

/* --- Estilos para el Calendario Responsive --- */

/* Por defecto (vista MÓVIL) */
.desktop-calendar {
    display: none !important; /* Usamos !important para asegurar que se oculte */
}
.mobile-calendar {
    display: block; /* La vista móvil es visible por defecto */
}
.mobile-calendar .day-header {
    background-color: #f8f9fa;
    padding: 0.75rem;
    font-weight: bold;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

/* Cuando la pantalla sea más ancha que 768px (vista ESCRITORIO) */
@media (min-width: 768px) {
    .mobile-calendar {
        display: none !important; /* Ocultamos la vista móvil */
    }
    .desktop-calendar {
        display: block !important; /* Mostramos la vista de escritorio */
    }
}

/* --- Estilos para la Silueta Interactiva de Evaluación --- */
.silhouette-container {
    position: relative;
    max-width: 300px; /* Ajusta el tamaño según tu diseño */
    margin: auto;
}
.silhouette-container img {
    width: 100%;
    height: auto;
}
.hotspot {
    position: absolute;
    background-color: rgba(0, 123, 255, 0.4); /* Azul semitransparente para ver el área */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.hotspot:hover, .hotspot.active {
    background-color: rgba(0, 123, 255, 0.7);
    transform: scale(1.2);
}
.form-control.highlight {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* --- Rediseño POS Premium --- */
.pos-container {
    background-color: #f0f2f5;
    min-height: calc(100vh - 60px);
}

/* Buscador y Categorías */
.pos-search-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    gap: 10px;
    scrollbar-width: thin;
}

.category-item {
    padding: 8px 20px;
    background: white;
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-item:hover, .category-item.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Tarjetas de Producto */
.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.pos-product-card {
    background: white;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pos-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #0d6efd;
}

.pos-product-card .icon-container {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.5rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.pos-product-card:hover .icon-container {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.pos-product-card .price-tag {
    font-weight: 700;
    color: #198754;
    font-size: 1.1rem;
    display: block;
    margin-top: 5px;
}

.pos-product-card .stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Panel del Carrito (Glassmorphism) */
.pos-cart-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item-row {
    background: white;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.cart-total-section {
    padding: 20px;
    background: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

/* Botones de Pago */
.btn-payment-method {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-payment-method.active {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

/* --- Rediseño Gestión de Miembros Premium --- */
.stat-card-premium {
    border: none;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.stat-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.stat-card-premium .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.stat-card-premium .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #212529;
}

.stat-card-premium .stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Avatares de Iniciales */
.avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

/* Tabla de Miembros Modernizada */
.member-table-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    overflow: hidden;
}

.member-table thead th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid #edf1f7;
}

.member-row {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f5;
}

.member-row:hover {
    background-color: rgba(13, 110, 253, 0.02) !important;
}

.member-row td {
    padding: 1rem;
    font-size: 0.95rem;
}

/* Badges Premium */
.badge-premium {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.badge-soft-success { background-color: rgba(25, 135, 84, 0.1); color: #198754; }
.badge-soft-warning { background-color: rgba(255, 193, 7, 0.1); color: #997404; }
.badge-soft-danger { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
.badge-soft-secondary { background-color: rgba(108, 117, 125, 0.1); color: #6c757d; }

/* Botones de Acción Agrupados */
.action-group {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-action-view { color: #0d6efd; }
.btn-action-edit { color: #ffc107; }
.btn-action-delete { color: #dc3545; }
.btn-action-success { color: #198754; }

/* --- Dashboard de Evaluación Física Premium --- */
.evaluation-dashboard {
    background: #f8f9fa;
    border-radius: 24px;
    padding: 20px;
}

.silhouette-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.silhouette-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.metric-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.metric-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    color: #212529;
}

.metric-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}

.assessment-card {
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

.assessment-card .card-header {
    background: transparent;
    border-bottom: 1px solid #f1f3f5;
    padding: 20px;
}

.assessment-card .card-header h5 {
    margin-bottom: 0;
    font-weight: 700;
    color: #495057;
    font-size: 1rem;
}

.assessment-card .card-body {
    padding: 25px;
}

/* Gráficos */
.chart-container {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-top: 20px;
}

.health-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}
.dot-success { background-color: #198754; }
.dot-warning { background-color: #ffc107; }
.dot-danger { background-color: #dc3545; }
/* --- Calendario de Miembros Moderno --- */
.calendar-day-tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.calendar-day-tabs::-webkit-scrollbar {
    display: none;
}

.day-tab {
    flex: 0 0 70px;
    height: 90px;
    background: white;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #f1f3f5;
}

.day-tab.active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.2);
    border-color: #0d6efd;
}

.day-tab .tab-name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
}

.day-tab .tab-date {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Glass Schedule Cards */
.glass-schedule-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.glass-schedule-card:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.glass-schedule-card.reserva-propia {
    border-left: 5px solid #0d6efd;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(13, 110, 253, 0.05));
}

.class-info-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.class-icon {
    width: 45px;
    height: 45px;
    background: #f1f3f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #495057;
}

.class-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
}

.class-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.premium-form-header {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    padding: 30px;
    color: white;
    text-align: center;
}

.premium-form-body {
    padding: 40px;
}

.input-icon-group {
    position: relative;
}

.input-icon-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    transition: color 0.3s;
}

.input-icon-group .form-control, 
.input-icon-group .form-select {
    padding-left: 45px;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    height: 50px;
    transition: all 0.3s;
}

.input-icon-group .form-control:focus,
.input-icon-group .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.input-icon-group .form-control:focus + i,
.input-icon-group .form-select:focus + i {
    color: #0d6efd;
}

.form-label-premium {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
