* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.login-page {
    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 10px 40px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    color: #667eea;
    margin-bottom: 30px;
    text-align: center;
    font-size: 28px;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-box input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.login-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.login-box button {
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-box button:hover {
    background: #5568d3;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert.success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-bottom: 30px;
    font-size: 20px;
    text-align: center;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar nav a {
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

.sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar nav a.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.main-content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    background: #f5f5f5;
}

.main-content h1 {
    margin-bottom: 20px;
    color: #667eea;
    font-size: 28px;
}

.main-content h2 {
    margin-bottom: 15px;
    color: #667eea;
    font-size: 20px;
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 14px;
}

.btn-primary {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-sm {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.btn-sm:hover {
    background: #5568d3;
}

.modal-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.modal-form button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.modal-form button:hover {
    background: #5568d3;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

table tr:hover {
    background: #f9f9f9;
}

table tr:last-child td {
    border-bottom: none;
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge.activa,
.badge.confirmada,
.badge.pagado {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.pendiente {
    background: #fff3e0;
    color: #e65100;
}

.badge.cancelada {
    background: #ffebee;
    color: #c62828;
}

.badge.Victoria {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.Derrota {
    background: #ffebee;
    color: #c62828;
}

.badge.Empate {
    background: #e3f2fd;
    color: #1565c0;
}

.badge.leve {
    background: #e0f2f1;
    color: #004d40;
}

.badge.moderada {
    background: #fff3e0;
    color: #e65100;
}

.badge.grave {
    background: #ffebee;
    color: #c62828;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .main-content {
        margin-left: 0;
    }

    .two-cols {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
