/* General */
body {
    font-family: 'Arial', sans-serif;
    margin: 20px;
    background-color: #f5f5f5;
    color: #333;
}

/* Tablas */
table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

th {
    background-color: #343a40;
    color: #fff;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Resaltar las opciones más votadas */
td.voto-yes {
    background-color: #c8e6c9; /* verde */
    font-weight: bold;
}

td.voto-maybe {
    background-color: #fff9c4; /* amarillo */
    font-weight: bold;
}

td.voto-no {
    background-color: #ffcdd2; /* rojo */
    font-weight: bold;
}

/* Select de votos (si lo sigues usando) */
select {
    padding: 6px 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s all;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

/* Alertas de guardado */
.alert-save {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: none;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #28a745;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Botones de votación si los usas */
.btn-voto {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    margin: 0 4px;
    border-radius: 8px;
    transition: transform 0.15s ease;
}

.btn-voto.active {
    box-shadow: 0 0 0 3px #000 inset;
    transform: scale(1.1);
}

.btn-voto:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 576px) {
    body {
        margin: 10px;
    }

    th, td {
        padding: 8px 4px;
        font-size: 0.9rem;
    }

    .btn-voto {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin: 0 2px;
    }
}
