/* assets/css/entrenadores.css */
/* Estilos específicos para el módulo de entrenadores */

/* 🔥 ESTILOS GENERALES MEJORADOS */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, black 0%, #8b0000 100%);
    border-radius: 1px;
    color: white;
}

.admin-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.admin-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 🔥 BARRA DE BÚSQUEDA MEJORADA */
.search-section {
    margin-bottom: 30px;
}

.search-card {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    margin: 0;
}

.search-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.search-form {
    padding: 25px;
    margin: 0;
}

.search-input-group {
    display: flex;
    gap: 15px;
    align-items: stretch;
    flex-wrap: wrap;
}

.input-with-icon {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.clear-search {
    background: #6c757d;
    color: white;
    padding: 13px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-search:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 🔥 FILTROS MEJORADOS */
.quick-filters {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
}

.filters-header {
    margin-bottom: 15px;
}

.filters-header strong {
    color: #495057;
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    color: #495057;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    border: 2px solid #e8ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.filter-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.filter-btn.active {
    background: #b21f1f;
    color: white;
    border-color: #b21f1f;
    box-shadow: 0 5px 15px rgba(178, 31, 31, 0.3);
}

/* 🔥 ESTADÍSTICAS MEJORADAS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 5px solid #667eea;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-card.total-users { border-left-color: #667eea; }
.stat-card.admin-users { border-left-color: #b21f1f; }
.stat-card.trainer-users { border-left-color: #28a745; }
.stat-card.client-users { border-left-color: #ffc107; }

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.stat-card.admin-users .stat-icon { background: linear-gradient(135deg, #b21f1f 0%, #8b0000 100%); }
.stat-card.trainer-users .stat-icon { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%); }
.stat-card.client-users .stat-icon { background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%); }

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.stat-info p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

/* 🔥 TABLA MEJORADA */
.admin-card {
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecef;
}

.table-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.table-actions {
    display: flex;
    gap: 12px;
}

.btn-export {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #b21f1f 0%, #8b0000 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 31, 31, 0.4);
}

.table-container {
    overflow-x: auto;
    padding: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px;
}

.admin-table th {
    background: #f8f9fa;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e8ecef;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #f8f9fa;
}

/* 🔥 ESTILOS ESPECÍFICOS DE CELDAS PARA ENTRENADORES */
.user-id {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
}

.user-avatar {
    display: flex;
    justify-content: center;
}

.avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8ecef;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-details strong {
    color: #2c3e50;
    font-size: 1rem;
}

.user-meta {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.role-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
}

.role-personal-training { 
    background: #667eea; 
    color: white; 
}

.role-yoga { 
    background: #28a745; 
    color: white; 
}

.role-crossfit { 
    background: #dc3545; 
    color: white; 
}

.role-pilates { 
    background: #6f42c1; 
    color: white; 
}

.role-nutrición { 
    background: #fd7e14; 
    color: white; 
}

.role-boxeo { 
    background: #e83e8c; 
    color: white; 
}

.role-musculación { 
    background: #20c997; 
    color: white; 
}

.user-email, .user-phone, .user-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.tarifa-badge {
    background: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    text-align: center;
}

.user-actions {
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
    transform: scale(1.1);
}

.btn-edit {
    background: #ffc107;
    color: white;
}

.btn-edit:hover {
    background: #e0a800;
    transform: scale(1.1);
}

.btn-disable {
    background: #dc3545;
    color: white;
}

.btn-disable:hover {
    background: #c82333;
    transform: scale(1.1);
}

.btn-enable {
    background: #28a745;
    color: white;
}

.btn-enable:hover {
    background: #218838;
    transform: scale(1.1);
}

/* 🔥 ESTADO SIN RESULTADOS */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
    font-style: italic;
    font-size: 1.1rem;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #dee2e6;
}

/* 🔥 MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #2c3e50;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e8ecef;
    border-radius: 0 0 15px 15px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #b21f1f 0%, #8b0000 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9a1a1a 0%, #7a0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 31, 31, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.foto-preview {
    margin-top: 10px;
}

.foto-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    border: 2px solid #e8ecef;
    object-fit: cover;
}

/* 🔥 NOTIFICACIONES */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.notification-warning {
    background: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

.notification-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* 🔥 RESULTADOS DE BÚSQUEDA */
.search-results {
    margin-bottom: 20px;
}

.results-info {
    background: #e7f3ff;
    color: #0066cc;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 🔥 RESPONSIVE */
@media (max-width: 1200px) {
    .admin-container {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .input-with-icon {
        min-width: auto;
        width: 100%;
    }
    
    .search-btn, .clear-search {
        width: 100%;
        justify-content: center;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .admin-header {
        padding: 20px 0;
    }
    
    .admin-header h1 {
        font-size: 1.6rem;
    }
    
    .search-header, .search-form, .quick-filters {
        padding: 15px;
    }
    
    .table-header {
        padding: 20px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-action {
        width: 35px;
        height: 35px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 🔥 ANIMACIONES Y EFECTOS */
.stat-card, .admin-card, .search-card {
    transition: all 0.3s ease;
}

.stat-card:hover, .admin-card:hover, .search-card:hover {
    transform: translateY(-3px);
}

.btn, .btn-action, .filter-btn {
    transition: all 0.3s ease;
}

/* 🔥 SCROLLBAR PERSONALIZADO */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}