:root {
    --bg-color: #f0f4f8;
    --text-color: #102a43;
    --primary: #243b53;
    --accent: #334e68;
    --white: #ffffff;
    --success: #20c997;
    --error: #e53e3e;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

h1,
h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 25px;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: 600;
    margin-bottom: -5px;
    color: var(--accent);
}

input,
button,
select {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #d9e2ec;
    border-radius: 6px;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36, 59, 83, 0.1);
}

button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    margin-top: 10px;
}

button:hover {
    background-color: var(--accent);
}

button:active {
    transform: scale(0.98);
}

.alert {
    padding: 12px 20px;
    background: var(--success);
    color: white;
    margin-bottom: 25px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-error {
    background: var(--error);
}

/* Public Screen specific CSS */
.public-body {
    background-color: #0b0f19;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.public-table {
    width: 96vw;
    height: 92vh;
    border-collapse: collapse;
    font-size: 3.5vw;
    text-align: center;
    background: #111827;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.public-table thead {
    height: 15vh;
}

.public-table th {
    background-color: #1f2937;
    color: #007bff;
    padding: 2vh;
    border-bottom: 6px solid #374151;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.public-table td {
    padding: 2vh 1vh;
    border-bottom: 2px solid #1f2937;
    vertical-align: middle;
}

/* Zebra striping para lectura más fácil de lejos */
.public-table tbody tr:nth-child(even) {
    background-color: #111827;
}

.public-table tbody tr:nth-child(odd) {
    background-color: #161f30;
}

/* Animación sutil de actualización */
@keyframes highlight {
    0% {
        background-color: rgba(76, 175, 80, 0.3);
    }

    100% {
        background-color: transparent;
    }
}

.updated-row {
    animation: highlight 2s ease-out;
}