/* ============================================================
   FÉRIAS DESPORTIVAS SENIORES — extras
   Tailwind cobre o resto via CDN.
   ============================================================ */

body { font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif; }

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Letra um pouco maior para utilizadores seniores */
html { font-size: 17px; }
@media (max-width: 640px) { html { font-size: 16px; } }

/* Inputs do nosso tema */
.input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    font-size: 1rem;
    transition: box-shadow .15s, border-color .15s;
    background: white;
}
.input:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.input::placeholder { color: #94a3b8; }

.label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.35rem;
}

/* Botão primário (gradient) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .05s;
    font-size: 1rem;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Botão secundário (outline) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: white;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
}
.btn-secondary:hover { background: #f8fafc; }

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.7rem;
    background: white;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.6rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}
.btn-danger:hover { background: #fef2f2; }

/* Cartão de turno seleccionável */
.opcao-turno-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all .15s;
    background: #f8fafc;
}
.opcao-turno-card:hover { border-color: #818cf8; background: white; }
.opcao-turno-card.selecionado {
    border-color: #4f46e5;
    background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.18);
}
.opcao-turno-card.esgotado {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f1f5f9;
}
.opcao-turno-card input { position: absolute; opacity: 0; pointer-events: none; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.badge-manha { background: #fef3c7; color: #92400e; }
.badge-tarde { background: #dbeafe; color: #1e40af; }
.badge-cheio { background: #fee2e2; color: #991b1b; }

/* Tabela */
.tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.tabela th {
    text-align: left;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
}
.tabela td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}
.tabela tbody tr:hover { background: #f8fafc; }

/* Alertas */
.alerta {
    display: flex;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.alerta-sucesso { background: #dcfce7; color: #14532d; }
.alerta-erro    { background: #fee2e2; color: #991b1b; }
.alerta i { margin-top: 0.2rem; }

/* Destaque de secção em falta */
.destaque-erro {
    background: #fef2f2;
    box-shadow: inset 0 0 0 2px #fca5a5;
    border-radius: 0.75rem;
    transition: background .2s, box-shadow .2s;
}

/* Animação subtil */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .25s ease-out; }
