/* ===================================================
   Sorteio - Estilos Customizados
   =================================================== */

/* === Gradientes de fundo === */
.bg-gradient-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.bg-gradient-admin {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
}

/* === Logo === */
.logo-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 5px;
}

.logo-admin {
    background: rgba(255, 255, 255, 0.15);
}

.logo-icon {
    font-size: 2rem;
    color: #fff;
}

/* === Cards === */
.card {
    border-radius: 16px !important;
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.card-premio {
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
}

/* === Ícones de estatísticas === */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* === Cores soft === */
.bg-primary-soft { background-color: #e8eeff; }
.bg-warning-soft  { background-color: #fff8e1; }
.bg-success-soft  { background-color: #e8f5e9; }
.bg-info-soft     { background-color: #e1f5fe; }

.text-primary { color: #667eea !important; }

.badge.bg-primary-soft {
    background-color: #e8eeff;
    font-size: 0.85rem;
    padding: 0.4em 0.8em;
    border-radius: 8px;
}

/* === Formulário === */
.form-control,
.form-select,
.input-group-text {
    border-color: #e8e8e8;
    border-radius: 10px !important;
    font-size: 0.9rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2);
}

.input-group .form-control:focus {
    border-color: #667eea;
    box-shadow: none;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control,
.input-group:focus-within .btn {
    border-color: #667eea;
}

.input-group-text {
    background-color: #f8f9fa;
}

/* Arredondar input-group corretamente */
.input-group > .input-group-text:first-child {
    border-radius: 10px 0 0 10px !important;
}
.input-group > .form-control:last-child {
    border-radius: 0 10px 10px 0 !important;
}
.input-group > .form-control:not(:last-child) {
    border-radius: 0 !important;
}
.input-group > .btn:last-child {
    border-radius: 0 10px 10px 0 !important;
}

/* === Botões === */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px !important;
    padding: 0.55rem 1.2rem;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    border-radius: 10px !important;
}

.btn-outline-primary:hover {
    background: #667eea;
    border-color: #667eea;
}

.btn-outline-secondary,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-light {
    border-radius: 10px !important;
}

/* === Navbar === */
.navbar {
    padding: 0.75rem 1.5rem;
}

.navbar-brand {
    font-size: 1.1rem;
}

/* === Tabelas === */
.table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
}

/* === Animação shake para checkbox === */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

/* === Form check custom === */
.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.2em;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

/* === Alert === */
.alert {
    border: none;
    border-radius: 10px;
}

/* === Responsivo - tabela === */
@media (max-width: 576px) {
    .container-fluid {
        padding: 1rem !important;
    }
}
