* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Acordeón --- */
.accordion {
    margin-bottom: 30px;
}
.accordion-item {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
}
.accordion-header {
    width: 100%;
    text-align: left;
    background: #3498db;
    color: #fff;
    padding: 15px 20px;
    font-size: 1.2em;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}
.accordion-header.active, .accordion-header:hover {
    background: #2980b9;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    padding: 0 20px;
}
.accordion-header.active + .accordion-content {
    padding: 20px;
    border-top: 1px solid #eee;
    max-height: 2000px;
    overflow-y: auto;
}

.endpoint-group {
    margin-bottom: 20px;
}
.endpoint-group h4 {
    color: #2980b9;
    margin-bottom: 10px;
    margin-top: 20px;
    font-size: 1.1em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 3px;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.endpoint {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    max-width: 100%;
}

h3 {
    color: #34495e;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

input[type="text"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #3498db;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

.response {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: pre-wrap;
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

/* Estilos para mensajes de error y éxito */
.alert {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .section {
        padding: 15px;
    }

    .endpoint {
        padding: 10px;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }

    input[type="text"],
    input[type="number"],
    input[type="password"] {
        width: 100%;
    }
}

.env-selector-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(240, 240, 240, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.env-selector-box {
    background: #fff;
    padding: 40px 30px 30px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    text-align: center;
    min-width: 320px;
}
.env-selector-box h2 {
    margin-bottom: 25px;
    color: #2980b9;
}
.env-selector-box select {
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #bbb;
    margin-bottom: 20px;
    margin-right: 10px;
}
.env-btn {
    background: #3498db;
    color: #fff;
    font-size: 1.1em;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.env-btn:hover {
    background: #217dbb;
}
.env-label {
    font-weight: bold;
    color: #217dbb;
    font-size: 1.1em;
    margin-left: 10px;
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

input[type="datetime-local"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.endpoint input[type="text"],
.endpoint input[type="number"],
.endpoint input[type="datetime-local"],
.endpoint textarea {
    margin-bottom: 15px;
}

.endpoint input[required] {
    border-left: 3px solid #3498db;
}

.endpoint input[required]:invalid {
    border-left: 3px solid #e74c3c;
}

.date-group {
    margin-bottom: 15px;
}

.date-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}

.date-group input[type="datetime-local"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.date-group input[required] {
    border-left: 3px solid #3498db;
}

.date-group input[required]:invalid {
    border-left: 3px solid #e74c3c;
}

.preset-buttons {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.preset-buttons h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.preset-btn {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.preset-btn:hover {
    background-color: #2980b9;
}

.preset-btn:active {
    background-color: #1f6aa5;
}

/* Estilos para las tarjetas de partidas */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.match-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.match-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-header h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.match-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
}

.match-status.prepared {
    background-color: #f39c12;
    color: white;
}

.match-status.active {
    background-color: #27ae60;
    color: white;
}

.match-status.completed {
    background-color: #95a5a6;
    color: white;
}

.match-status.cancelled {
    background-color: #e74c3c;
    color: white;
}

.match-details {
    padding: 15px;
}

.match-details p {
    margin: 8px 0;
    color: #555;
    font-size: 0.9em;
}

.match-details strong {
    color: #333;
}

.match-actions {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.action-button {
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
    flex: 1;
}

.action-button:hover {
    background-color: #2980b9;
}

.danger-button {
    background-color: #e74c3c;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
    flex: 1;
}

.danger-button:hover {
    background-color: #c0392b;
}

/* Responsive para las tarjetas */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .match-actions {
        flex-direction: column;
    }
    
    .action-button,
    .danger-button {
        width: 100%;
    }
} 