/* Mejor separación visual de cada pregunta de evaluación */
.eval-question {
    background: #f5f8fc;
    border: 1px solid #e0e6ef;
    border-radius: 8px;
    padding: 1.1em 1.2em 0.7em 1.2em;
    margin-bottom: 1.3em;
    box-shadow: 0 1px 4px rgba(30,60,90,0.04);
}
/* Estilos para la pantalla de evaluación pública */
#publicEvalView {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2em 2em 1.5em 2em;
}
#publicEvalView h2, #publicEvalView h3 {
    margin-top: 0.5em;
}
#publicEvalView .match-header {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 0.5em;
}
#publicEvalView .match-meta {
    color: #555;
    font-size: 1em;
    margin-bottom: 1.2em;
    display: flex;
    gap: 2em;
    align-items: center;
}
#publicEvalView .eval-form-section {
    background: #f7fafd;
    border-radius: 8px;
    padding: 1.2em 1.5em;
    margin-bottom: 1.5em;
}
#publicEvalView .eval-form-row {
    display: flex;
    gap: 1.5em;
    margin-bottom: 1em;
}
#publicEvalView label {
    font-weight: 500;
    margin-bottom: 0.2em;
    display: block;
}
#publicEvalView input[type="text"],
#publicEvalView input[type="email"] {
    width: 100%;
    padding: 0.5em 0.7em;
    border: 1px solid #d0d7e2;
    border-radius: 5px;
    font-size: 1em;
    background: #fff;
}
#publicEvalView select {
    width: 100%;
    padding: 0.5em 0.7em;
    border: 1px solid #d0d7e2;
    border-radius: 5px;
    font-size: 1em;
    background: #fff;
}
#publicEvalView .resultado-box {
    background: #f3f6fa;
    border-radius: 8px;
    padding: 1em 1.5em;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 1.5em;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
/* Iconos de estado de evaluación */
.eval-icons {
    display: flex;
    gap: 0.5em;
    align-items: center;
    justify-content: center;
}
.eval-icon {
    width: 22px;
    height: 22px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
/* Colores iconos inactivos */
.eval-icon-local,
.eval-icon-visitante,
.eval-icon-arbitro {
    color: #c2c7d0;
}
/* Colores iconos activos */
.eval-icon.filled.eval-icon-local {
    color: #43a047;
}
.eval-icon.filled.eval-icon-visitante {
    color: #1976d2;
}
.eval-icon.filled.eval-icon-arbitro {
    color: #e6b800;
}
.eval-icon.filled {
    cursor: not-allowed;
    opacity: 1;
}
.eval-icon.disabled {
    stroke: green !important;
    color: green !important;
    opacity: 1 !important;
}
.eval-icon.disabled:hover {
    /* show 'prohibido' cursor on hover */
    cursor: not-allowed !important;
}
.eval-icon:not(.filled) {
    cursor: pointer;
}
.eval-icon.filled {
    opacity: 1;
}
/* Botones de acciones en la tabla pública */
.btn-public-action {
    background: #eaf1fb;
    color: #1a2a3a;
    border: 1px solid #b5c9e2;
    border-radius: 4px;
    padding: 0.25em 0.7em;
    margin: 0 0.15em;
    font-size: 0.97em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.btn-public-action:hover {
    background: #d2e3fa;
    color: #0a1a2a;
    border-color: #7fa7d9;
}
/* Tabla de partidos públicos */
h3, h4 {
    margin-bottom: 0.3em;
    margin-top: 1.2em;
}

.public-matches-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2em;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 8px;
    overflow: hidden;
}
.public-matches-table th, .public-matches-table td {
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75em 1.2em;
    text-align: left;
}
.public-matches-table th {
    background: #eaf1fb;
    font-weight: 700;
    color: #1a2a3a;
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 2px 2px -2px #e0e0e0;
}
.public-matches-table tr {
    transition: background 0.2s;
}
.public-matches-table tr:nth-child(even) td {
    background: #f4f8fb;
}
.public-matches-table tr:nth-child(odd) td {
    background: #fff;
}
.public-matches-table tr:hover td {
    background: #e0ecf7;
}
.public-matches-table td {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    border-left: 1px solid #f0f0f0;
}
.public-matches-table td:first-child {
    border-left: none;
}
h3, h4 {
    margin-bottom: 0.3em;
    margin-top: 1.2em;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header {
    border-bottom: 3px solid #4a5568;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* Estilos para sincronización con Google Sheets */
.sync-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background-color: #f7fafc;
    border-radius: 5px;
    flex-wrap: wrap;
}

.btn-sync {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #4285f4;
    color: white;
    font-weight: 500;
}

.btn-sync:hover {
    background-color: #3367d6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sync-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.sync-status.info {
    background-color: #e3f2fd;
    color: #1976d2;
}

.sync-status.success {
    background-color: #e8f5e9;
    color: #388e3c;
}

.sync-status.warning {
    background-color: #fff3e0;
    color: #f57c00;
}

.sync-status.error {
    background-color: #ffebee;
    color: #d32f2f;
}

.logo-left {
    font-weight: bold;
    color: #2d3748;
    font-size: 14px;
}

.logo-right {
    text-align: right;
    color: #2d3748;
    font-size: 12px;
    line-height: 1.4;
}

h1 {
    font-size: 18px;
    color: #2d3748;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.form-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-weight: bold;
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.form-field input {
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

/* Información de headers para la lista de partidos (Edición / Grupo) */
.matches-header-info {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 0.6em;
}

.teams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.team-section {
    border: 2px solid #e2e8f0;
    padding: 20px;
    background-color: #fafafa;
}

.team-section h2 {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    color: #2d3748;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #e2e8f0;
    text-align: center;
}

.team-name {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #4299e1;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
}

.resultado-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #e2e8f0;
    margin-bottom: 20px;
    font-weight: bold;
}

.resultado-box label {
    font-size: 12px;
    text-transform: uppercase;
}

.resultado-box input {
    width: 60px;
    padding: 5px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.resultado-box span {
    font-size: 18px;
}

/* =====================
   Reglas responsivas
   ===================== */

/* Pequeños dispositivos móviles (<= 480px) */
@media (max-width: 480px) {
    body { padding: 10px; }
    .container { padding: 12px; }

    /* Public Eval View adjustments */
    #publicEvalView { padding: 1em; }
    #publicEvalView .match-header { font-size: 1em; }
    #publicEvalView .match-meta { font-size: 0.9em; gap: 0.6em; flex-direction: column; align-items: flex-start; }
    #publicEvalView .eval-form-section { padding: 0.8em; }
    #publicEvalView .eval-form-row { flex-direction: column; gap: 0.6em; }
    #publicEvalView input[type="text"], #publicEvalView input[type="email"], #publicEvalView select { font-size: 0.95em; padding: 0.6em; }
    #publicEvalView .resultado-box { font-size: 1em; padding: 0.8em; }

    /* Eval question spacing and font-size for small screens */
    .eval-question { padding: 0.9em; margin-bottom: 1em; }
    .eval-question strong { font-size: 0.95em; display:block; margin-bottom:0.4em; }
    .eval-question label { font-size: 0.92em; }

    /* Make grid/table scrollable but allow wrapping for long team names */
    .public-matches-table { display: block; overflow-x: auto; }
    .public-matches-table th, .public-matches-table td { padding: 0.5em 0.8em; }
    .public-matches-table td { white-space: normal; word-break: break-word; }
    .public-matches-table td:nth-child(2), .public-matches-table td:nth-child(3) {
        /* Local and Visitante columns: allow wrapping and limit width so they can wrap into two lines */
        max-width: 160px;
        min-width: 120px;
    }
    .public-matches-table td:nth-child(1) { min-width: 100px; }
    .public-matches-table td:nth-child(4) { min-width: 100px; text-align: center; }
    .public-matches-table td { font-size: 0.95rem; line-height: 1.2; }

    /* Header & form layout adjustments */
    .form-header { grid-template-columns: 1fr; padding: 12px; }
    .teams-container { grid-template-columns: 1fr; gap: 18px; }

    /* Buttons full width */
    .btn-public-action, .btn-primary, .btn-sync { width: 100%; box-sizing: border-box; }

    /* Icons and badges smaller */
    .eval-icon { width: 18px; height: 18px; }
    .score-badge { transform: scale(0.9); }
}

/* Muy pequeños (teléfonos estrechos) */
@media (max-width: 420px) {
    .public-matches-table td { font-size: 0.88rem; }
    .public-matches-table td:nth-child(2), .public-matches-table td:nth-child(3) {
        max-width: 140px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container { padding: 18px; }
    #publicEvalView { padding: 1.2em; }
    #publicEvalView .match-header { font-size: 1.05em; }
    #publicEvalView .match-meta { gap: 1em; }
    #publicEvalView .eval-form-row { flex-direction: column; gap: 0.9em; }
    .public-matches-table { display: block; overflow-x: auto; }
    .public-matches-table td { font-size: 1rem; }
    .form-header { grid-template-columns: 1fr; }
    .teams-container { grid-template-columns: 1fr 1fr; gap: 18px; }
    .eval-question { padding: 1em; }
}

/* Escritorio pequeño (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 22px; }
    #publicEvalView { padding: 1.5em; }
    .public-matches-table td { font-size: 1.02rem; }
    .eval-question { padding: 1.05em; }
}


.scoring-section {
    margin-bottom: 25px;
    border: 1px solid #cbd5e0;
    padding: 15px;
    background-color: white;
}

.scoring-section h3 {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.scoring-item {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.scoring-item:hover {
    background-color: #f7fafc;
}

.scoring-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    gap: 10px;
}

.scoring-item input[type="radio"] {
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.score-badge {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    color: white;
}

.score-badge.red {
    background-color: #e53e3e;
}

.score-badge.orange {
    background-color: #ed8936;
}

.score-badge.yellow {
    background-color: #ecc94b;
    color: #2d3748;
}

.score-badge.light-green {
    background-color: #48bb78;
}

.score-badge.green {
    background-color: #2f855a;
}

.total-box {
    background-color: #2d3748;
    color: white;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.total-box label {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.total-score {
    font-size: 32px;
    font-weight: bold;
}

.signature-box {
    padding: 15px;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
}

.signature-box label {
    display: block;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 8px;
}

.signature-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

.deadline-warning {
    background-color: #fff5f5;
    border: 2px solid #fc8181;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    color: #742a2a;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-submit, .btn-export {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit {
    background-color: #48bb78;
    color: white;
}

.btn-submit:hover {
    background-color: #38a169;
}

.btn-export {
    background-color: #4299e1;
    color: white;
}

.btn-export:hover {
    background-color: #3182ce;
}

.submission-message {
    background-color: #c6f6d5;
    color: #22543d;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 16px;
}

.submission-message.hidden {
    display: none;
}

/* Navegación principal */
.main-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    border-top: 2px solid #e2e8f0;
    margin-top: 30px;
}

.nav-btn {
    padding: 12px 25px;
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #2d3748;
}

/* Filtros públicos: selects y input consistentes */
#publicView .public-filters select,
#publicView .public-filters input[type="text"] {
    width: 100%;
    padding: 0.5em 0.7em;
    border: 1px solid #d0d7e2;
    border-radius: 5px;
    font-size: 1em;
    background: #fff;
}

/* Vistas */
.view {
    margin-bottom: 20px;
}

.view.hidden {
    display: none;
}

/* Admin */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-header h2 {
    font-size: 24px;
    color: #2d3748;
}

#matchFormSection {
    background-color: #f7fafc;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #4299e1;
    border-radius: 4px;
}

#matchFormSection h3 {
    margin-bottom: 15px;
    color: #2d3748;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Tarjetas de partidos */
.matches-list, .results-list {
    display: grid;
    gap: 15px;
}

.match-card {
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.match-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.match-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.match-date {
    color: #718096;
    font-size: 14px;
}

.match-body {
    margin-bottom: 15px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 16px;
}

.team {
    font-weight: bold;
    color: #2d3748;
}

.vs {
    color: #a0aec0;
    font-weight: bold;
}

.match-location {
    text-align: center;
    color: #718096;
    font-size: 14px;
}

.match-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.badge-success {
    background-color: #c6f6d5;
    color: #22543d;
}

.badge-warning {
    background-color: #feebc8;
    color: #7c2d12;
}

.badge-pending {
    background-color: #e2e8f0;
    color: #4a5568;
}

/* Botones de equipo para selección */
.match-teams-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.team-button {
    padding: 20px;
    border: 2px solid #4299e1;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.team-button:not(:disabled):hover {
    background-color: #ebf8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.team-button:disabled {
    border-color: #e2e8f0;
    background-color: #f7fafc;
    cursor: not-allowed;
    opacity: 0.6;
}

.team-button.completed {
    border-color: #48bb78;
    background-color: #f0fff4;
}

.team-name {
    font-weight: bold;
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 8px;
}

.team-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.team-button .check {
    color: #38a169;
    font-weight: bold;
}

.team-button .action {
    color: #4299e1;
    font-size: 14px;
}

/* Evaluación */
.evaluation-header {
    background-color: #ebf8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.evaluation-header h2 {
    font-size: 20px;
    color: #2c5282;
    margin-bottom: 8px;
}

.evaluation-header h3 {
    font-size: 16px;
    color: #4a5568;
    font-weight: normal;
}

.match-info-card {
    background-color: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.match-info-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #2d3748;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    font-weight: bold;
}

.info-value {
    font-size: 14px;
    color: #2d3748;
}

.resultado-section {
    background-color: #fff5f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #fc8181;
}

.resultado-section h3 {
    text-align: center;
    margin-bottom: 15px;
    color: #742a2a;
}

.resultado-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.resultado-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.resultado-field label {
    font-weight: bold;
    color: #2d3748;
    font-size: 14px;
}

.resultado-field input {
    width: 80px;
    padding: 10px;
    border: 2px solid #4a5568;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.resultado-inputs .vs {
    font-size: 24px;
    font-weight: bold;
    color: #718096;
}

/* Resultados */
.result-card {
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.result-header h3 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 5px;
}

.result-date {
    color: #718096;
    font-size: 14px;
}

.result-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.result-team {
    text-align: center;
}

.result-team .team-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.result-team .team-score {
    font-size: 32px;
    font-weight: bold;
    color: #4299e1;
    margin-bottom: 8px;
}

.result-team .team-points {
    font-size: 14px;
    color: #48bb78;
    font-weight: bold;
}

.result-vs {
    font-size: 24px;
    color: #a0aec0;
    font-weight: bold;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.detailed-results {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.detailed-results h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2d3748;
}

.detailed-results h3 {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 8px;
}

.detailed-results p {
    color: #718096;
    margin-bottom: 20px;
}

.detailed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.detailed-team {
    background-color: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.detailed-team h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2d3748;
}

.detailed-team p {
    margin-bottom: 10px;
    color: #4a5568;
}

.detailed-team ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.detailed-team ul li {
    padding: 5px 0;
    color: #4a5568;
}

/* Botones */
.btn-primary {
    background-color: #4299e1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #3182ce;
}

.btn-secondary {
    background-color: #a0aec0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #718096;
}

.btn-danger {
    background-color: #fc8181;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #f56565;
}

.btn-small {
    padding: 8px 15px;
    font-size: 13px;
}

/* No data */
.no-data {
    text-align: center;
    color: #718096;
    padding: 40px;
    font-style: italic;
}

@media print {
    body {
        padding: 0;
        background-color: white;
    }
    
    .container {
        box-shadow: none;
    }
    
    .form-actions, .deadline-warning, .main-nav {
        display: none;
    }
}

@media (max-width: 1200px) {
    .teams-container {
        grid-template-columns: 1fr;
    }
    
    .detailed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }
    
    .scoring-item label {
        font-size: 12px;
    }
    
    .match-teams-selection {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        flex-direction: column;
    }
    
    .result-teams {
        flex-direction: column;
        gap: 20px;
    }
}

/* ========== TABS DE ADMINISTRACIÓN ========== */
.admin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.admin-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.admin-tab:hover {
    color: #2d3748;
    background-color: #f7fafc;
}

.admin-tab.active {
    color: #4385bd;
    border-bottom-color: #4385bd;
    background-color: #f7fafc;
}

.tab-content {
    padding: 20px 0;
}

/* ========== TABLA DE INFORMES ========== */
.informes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.informes-header .info-text {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
}

.informes-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.informes-table thead {
    background: #4385bd;
    color: white;
}

.informes-table th {
    padding: 8px 6px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Anchos específicos de columnas */
.informes-table th:nth-child(1),
.informes-table td:nth-child(1) {
    width: 85px;
    min-width: 85px;
}

.informes-table th:nth-child(2),
.informes-table td:nth-child(2) {
    width: 80px;
    min-width: 80px;
}

.informes-table th:nth-child(3),
.informes-table td:nth-child(3) {
    width: 60px;
    min-width: 60px;
}

.informes-table th:nth-child(6),
.informes-table td:nth-child(6),
.informes-table th:nth-child(7),
.informes-table td:nth-child(7) {
    width: 100px;
    min-width: 100px;
}

.informes-table th:nth-child(8),
.informes-table td:nth-child(8) {
    width: 130px;
    min-width: 130px;
}

.informes-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #2d3748;
    white-space: nowrap;
}

.informes-table tbody tr:hover {
    background-color: #f7fafc;
}

.informes-table tbody tr:last-child td {
    border-bottom: none;
}

/* Estado de evaluaciones */
.eval-status {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
}

.eval-status.eval-completed {
    background-color: #c6f6d5;
    color: #22543d;
}

.eval-status.eval-pending {
    background-color: #fef5e7;
    color: #975a16;
}

/* Botón de PDF */
.btn-pdf {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(211, 47, 47, 0.2);
}

.btn-pdf:hover {
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.3);
}

.btn-pdf:active {
    transform: translateY(0);
}

.text-muted {
    color: #a0aec0;
    font-size: 13px;
    font-style: italic;
}

/* Campos de filtro de texto en informes */
.filter-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: #4385bd;
    box-shadow: 0 0 0 3px rgba(67, 133, 189, 0.1);
}

.filter-input::placeholder {
    color: #a0aec0;
}

/* Responsive para tabla de informes */
@media (max-width: 768px) {
    .informes-table {
        font-size: 12px;
    }
    
    .informes-table th,
    .informes-table td {
        padding: 8px 6px;
    }
    
    .informes-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .admin-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .admin-tab {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
}

/* ========== GESTIÓN DE USUARIOS ========== */
.usuarios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.usuarios-header .info-text {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
}

.usuarios-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.usuarios-table thead {
    background: #4385bd;
    color: white;
}

.usuarios-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usuarios-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #2d3748;
}

.usuarios-table tbody tr:hover {
    background-color: #f7fafc;
}

.usuarios-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges de rol */
.rol-badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
}

.rol-badge.rol-admin {
    background-color: #fef5e7;
    color: #975a16;
    border: 1px solid #f39c12;
}

.rol-badge.rol-evaluador {
    background-color: #e8f4f8;
    color: #1565c0;
    border: 1px solid #4385bd;
}

/* Botones de acción en tabla de usuarios */
.btn-accion {
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hacer-admin {
    background: #c6f6d5;
    color: #22543d;
}

.btn-hacer-admin:hover {
    background: #9ae6b4;
    transform: translateY(-1px);
}

.btn-quitar-admin {
    background: #fed7d7;
    color: #c53030;
}

.btn-quitar-admin:hover {
    background: #fc8181;
    transform: translateY(-1px);
}

.btn-eliminar {
    background: #2d3748;
    color: white;
}

.btn-eliminar:hover {
    background: #1a202c;
    transform: translateY(-1px);
}
