:root {
    --primary-color: #1b5e20;
    --secondary-color: #4caf50;
    --accent-color: #ffb300;
    --danger-color: #d32f2f;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.header h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--accent-color);
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 900px) {
    .grid-layout {
        grid-template-columns: 350px 1fr;
    }
}

.grid-layout-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .grid-layout-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

h4 {
    margin-bottom: 10px;
    color: #555;
}

/* Formularios */
.form-group {
    margin-bottom: 15px;
}

.row {
    display: flex;
    gap: 10px;
    align-items: center;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #124016;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #388e3c;
}

/* Tablas */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-color);
    color: var(--primary-color);
    font-size: 0.9rem;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

/* Lista de Partidos */
.match-list {
    list-style: none;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
    margin-bottom: 5px;
    border-radius: 4px;
}

.match-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.delete-btn {
    background-color: var(--danger-color);
    color: white;
    width: auto;
    padding: 5px 10px;
    font-size: 0.8rem;
}
.delete-btn:hover { background-color: #b71c1c; }

/* Iconos de tarjetas */
.card-icon {
    display: inline-block;
    width: 12px;
    height: 16px;
    border-radius: 2px;
    margin: 0 2px;
}
.card-yellow { background-color: #fbc02d; }
.card-red { background-color: #d32f2f; }