/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: #667eea;
    outline: none;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #0a0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
}

.form-links {
    margin-top: 20px;
    text-align: center;
}

.form-links a {
    display: block;
    margin: 10px 0;
    color: #667eea;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.security-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #666;
}

/* Dashboard styles */
.dashboard-container {
    width: 100%;
    min-height: 100vh;
    background: #f5f7fa;
}

.navbar {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.user-info, .security-logs, .security-tips {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

h2, h3 {
    margin-bottom: 20px;
    color: #333;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.info-table th {
    width: 200px;
    color: #666;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th, .logs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.logs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.security-tips ul {
    list-style: none;
    padding-left: 20px;
}

.security-tips li {
    padding: 8px 0;
    color: #555;
    position: relative;
}

.security-tips li:before {
    content: "✓";
    color: #27ae60;
    position: absolute;
    left: -20px;
}
/* ===== ESTILOS PARA DASHBOARD CON MENÚ ===== */

.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #b0b7c3;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    padding-left: 25px;
}

.sidebar-menu li.active a {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    border-left: 4px solid #3498db;
}

.sidebar-menu li a i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
}

.sidebar-menu li a .badge {
    margin-left: auto;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 15px 0;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.system-status h4 {
    margin-bottom: 15px;
    font-size: 14px;
    color: #b0b7c3;
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    margin-right: 10px;
}

.status-indicator.active {
    background: #2ecc71;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Contenido principal */
.main-content {
    flex: 1;
    background: #f5f7fa;
    padding: 20px;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.breadcrumb {
    color: #7f8c8d;
    font-size: 14px;
}

/* Tarjetas de estadísticas */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: rgba(52, 152, 219, 0.1);
}

.stat-info h3 {
    font-size: 32px;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.stat-info p {
    color: #7f8c8d;
    margin: 0;
}

.stat-link {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.stat-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.stat-link:hover i {
    transform: translateX(3px);
}

/* Grid de contenido */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

.content-box {
    background: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.box-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-header h2 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.box-content {
    padding: 20px;
}

/* Tablas de datos */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 2px solid #eee;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-position {
    background: #e3f2fd;
    color: #1976d2;
}

.flag-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #eee;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 10px;
    margin-right: 5px;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-action {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-edit {
    background: #e8f5e9;
    color: #388e3c;
}

.btn-stats {
    background: #f3e5f5;
    color: #7b1fa2;
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 50px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Feed de actividad */
.activity-feed {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 20px;
}

.activity-details {
    flex: 1;
}

.activity-title {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #2c3e50;
}

.activity-description {
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.activity-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #95a5a6;
}

.activity-meta i {
    margin-right: 5px;
}

/* Información de perfil */
.profile-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.profile-details h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.profile-details p {
    margin: 5px 0;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Acciones rápidas */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-action {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.quick-action:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #3498db;
}

.action-text h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #2c3e50;
}

.action-text p {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
}

/* Estadísticas de resumen */
.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.bar-item {
    margin-bottom: 15px;
}

.bar-label {
    font-size: 13px;
    color: #2c3e50;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.bar-container {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    transition: width 1s ease;
}

.bar-value {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 12px;
    color: #7f8c8d;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #ecf0f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tag-count {
    background: #bdc3c7;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Botones adicionales */
.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .sidebar-menu li {
        margin: 0;
        flex-shrink: 0;
    }
    
    .sidebar-menu li a {
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* Variables de color para íconos */
:root {
    --green: #2ecc71;
    --red: #e74c3c;
    --blue: #3498db;
    --orange: #e67e22;
}

/* ===== ESTILOS ADICIONALES PARA EQUIPOS Y ESTADÍSTICAS ===== */

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.alert i {
    font-size: 18px;
}

/* Filtros */
.filter-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

/* Botones de acción adicionales */
.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Formularios */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Tablas responsivas */
@media (max-width: 768px) {
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: 100%;
    }
}

/* Mejoras visuales para estadísticas */
.stats-table td, .stats-table th {
    padding: 12px 8px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Confirmación de eliminación */
.confirmation-box {
    text-align: center;
    padding: 30px;
}

.confirmation-box h3 {
    margin: 20px 0 10px;
    color: #2c3e50;
}

.confirmation-box p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Estado vacío mejorado */
.empty-state {
    text-align: center;
    padding: 50px 20px;
}

.empty-state i {
    font-size: 60px;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Mejoras para la información del equipo */
.team-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.team-info h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.team-meta {
    display: flex;
    gap: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.team-meta i {
    margin-right: 5px;
}