:root {
    --primary: #1e293b;   /* Slate 800 */
    --accent: #3b82f6;    /* Blue 500 */
    --bg: #f8fafc;        /* Slate 50 */
    --text: #0f172a;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    padding: 2rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

h1 { text-align: center; color: var(--primary); }

.flex-container {
	display: flex;
	justify-content: space-evenly;
}

.flex-container-vertical {
	display: flex;
	justify-content: flex-start;
	flex-direction: column;
}

.flex-item, .flex-item-2, .flex-item-5 {
    margin: 3px;
}

.flex-item {
	flex-grow: 1;
}

.flex-item-2{
	flex-grow: 2;
}

.flex-item-5 {
    flex-grow: 5;
}

.disabled {
    display: disabled;
}

.min-border{
	border-width: 1px;
	border-style: solid;
	border-color: #000088;
	margin: 2px;
}

.upper_label {
	clear: both;
}

button {
    width: 100%;
    background-color: var(--accent);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

button:disabled, button:disabled:hover { background-color: #888888;  }

button:hover { background-color: #2563eb; }

/* Table  */
.resultado-container {
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tabela-sorteio {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.5rem; /* Fonte grande para leitura à distância */
}

/* Cabeçalho fixo e imponente */
.tabela-sorteio thead th {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: left;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky; top: 0;
}

/* Estilo básico das células */
.tabela-sorteio td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    color: #333;
}

/* O "Zebra Striping" - Alternando cores */
.tabela-sorteio tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Cinza muito claro */
}

.tabela-sorteio tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Efeito de destaque ao passar o mouse (ajuda o síndico a apontar) */
.tabela-sorteio tbody tr:hover {
    background-color: #e8f4fd;
    color: #000;
    font-weight: bold;
}

/* Destaque para a coluna de Posição */
.tabela-sorteio td:first-child {
    font-weight: bold;
    color: #2ecc71; /* Verde para passar positividade */
    width: 150px;
}

/*Print only*/
@media screen {
    .print-only { display: none; } /* Esconde na tela comum */
}

@media print {
    body * { visibility: hidden; } /* Esconde tudo */
    .print-only, .print-only * { visibility: visible; } /* Mostra só o certificado */
    .print-only {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        font-family: 'Helvetica', Arial, sans-serif;
    }
    h1 { border-bottom: 2px solid #000; padding-bottom: 10px; }
    pre { background: #f4f4f4; padding: 10px; font-size: 10px; }
}