/* Estilos específicos para el panel de administración */

.admin-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

/* Sidebar */
.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.sidebar-menu {
    padding: 0 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #bdc3c7;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background: #34495e;
    color: white;
}

.sidebar-menu a.active {
    background: #4a6cf7;
    color: white;
}

.sidebar-menu i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #34495e;
    margin-top: 20px;
    font-size: 0.9rem;
}

.sidebar-footer p {
    margin-bottom: 5px;
}

.sidebar-footer small {
    color: #95a5a6;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 25px;
}

.admin-header {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header h1 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.btn-admin {
    padding: 10px 20px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-admin:hover {
    background: #3a5ce5;
    color: white;
    text-decoration: none;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

/* Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a6cf7, #6a11cb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.stat-content h3 {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Secciones */
.admin-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

/* Tablas */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: #f8f9ff;
}

.admin-table .text-center {
    text-align: center;
    padding: 40px;
}

.admin-table .text-center i {
    color: #bdc3c7;
    margin-bottom: 10px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 10px;
    background: #e9ecef;
    color: #495057;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-practica {
    background: #d4edda;
    color: #155724;
}

.badge-examen {
    background: #fff3cd;
    color: #856404;
}

.badge-progress {
    background: #cce5ff;
    color: #004085;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #4a6cf7;
    color: white;
    text-decoration: none;
    border-color: #4a6cf7;
}

.btn-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.btn-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Búsqueda y filtros */
.search-bar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-group {
    flex: 1;
    display: flex;
    gap: 10px;
}

.search-group input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.search-group button {
    padding: 10px 20px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear {
    padding: 10px 15px;
    background: #6c757d;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-clear:hover {
    background: #5a6268;
    color: white;
}

/* Filtros */
.filters-box {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters-box h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
}

.filter-actions {
    display: flex;
    gap: 15px;
}

.btn-filter {
    padding: 10px 25px;
    background: #4a6cf7;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

/* Estadísticas summary */
.stats-summary {
    display: flex;
    gap: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2rem;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-link {
    padding: 8px 15px;
    background: #f8f9fa;
    color: #495057;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.page-link:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #495057;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #495057;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.2s;
}

.page-number:hover {
    background: #e9ecef;
    text-decoration: none;
    color: #495057;
}

.page-number.active {
    background: #4a6cf7;
    color: white;
}

/* Info Box */
.info-box {
    background: #d4edda;
    border-left: 5px solid #28a745;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.info-box h3 {
    color: #155724;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Score Display */
.score-display {
    text-align: center;
}

.score-number {
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
}

.score-high {
    color: #28a745;
}

.score-medium {
    color: #ffc107;
}

.score-low {
    color: #dc3545;
}

/* Charts */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.chart-placeholder {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.chart-placeholder i {
    margin-bottom: 15px;
}

.distribution-chart {
    padding: 20px;
}

.distribution-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 20px;
}

.distribution-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bar-container {
    width: 60px;
    height: 150px;
    background: #f8f9fa;
    border-radius: 5px;
    position: relative;
}

.bar-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #4a6cf7, #6a11cb);
    border-radius: 5px 5px 0 0;
    transition: height 1s ease;
}

.bar-label {
    font-weight: 600;
    color: #495057;
}

.bar-value {
    font-weight: bold;
    color: #2c3e50;
}

/* Text utilities */
.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sidebar-menu a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        flex-direction: column;
        gap: 15px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}