/* Base Styles */
:root {
    --primary-color: #4f46e5; /* Indigo */
    --secondary-color: #0ea5e9; /* Sky */
    --accent-color: #818cf8; /* Light Indigo */
    --dark-bg: #1a1a2e; /* Fundo principal escuro */
    --card-bg: rgba(26, 26, 46, 0.2); /* Fundo de card/modal mais transparente para o glassmorphism */
    --card-bg-opaque: rgba(26, 26, 46, 0.9); /* Versão mais opaca para modais internos */
    --border-color: rgba(255, 255, 255, 0.1); /* Cor da borda mais sutil */
    --text-color: #e0e0e0; /* Cor de texto principal (clara) */
    --text-muted: #a0a0b0; /* Cor de texto secundária (cinza claro) - usada com cautela */
    --input-bg: rgba(255, 255, 255, 0.08); /* Fundo de input levemente mais claro */
    --input-border-focus: #6366f1; /* Borda de input em foco */
    --button-text-color: #fff; /* Cor do texto dos botões */
    --glass-blur: 15px; /* Nível de desfoque para o efeito glass */
    --success-color: #10b981; /* Tailwind green-500 */
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-color);
    margin: 0;
    overflow-x: hidden; /* Evita rolagem horizontal */
    display: flex; /* Para centralizar o login-container */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Background Shapes for Login and Raffle Page */
.background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}
.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.15;
    animation: float-and-drift 20s infinite alternate ease-in-out; /* Nova animação */
}
/* Coordenadas e duração/delay diferentes para cada shape para um efeito mais natural */
.shape1 { width: 400px; height: 400px; top: -100px; left: -100px; animation-duration: 25s; animation-delay: 0s; }
.shape2 { width: 500px; height: 500px; bottom: -150px; right: -150px; animation-duration: 20s; animation-delay: 5s; }
.shape3 { width: 250px; height: 250px; top: 50%; left: 30%; transform: translateY(-50%); animation-duration: 30s; animation-delay: 10s; }
.shape4 { width: 300px; height: 300px; bottom: 10%; left: 10%; animation-duration: 22s; animation-delay: 2s; }
.shape5 { width: 350px; height: 350px; top: 15%; right: 5%; animation-duration: 28s; animation-delay: 7s; }


@keyframes float-and-drift {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.15; }
    25% { transform: translate(10vw, 15vh) rotate(10deg); opacity: 0.20; }
    50% { transform: translate(-5vw, 20vh) rotate(-5deg); opacity: 0.15; }
    75% { transform: translate(15vw, 5vh) rotate(15deg); opacity: 0.20; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 0.15; }
}


/* Login Page Styles - REVISADO */
.login-container {
    padding: 0; /* Remove padding do container pai para controle dos filhos */
    background: var(--card-bg); /* Fundo semi-transparente para o glassmorphism */
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(var(--glass-blur)); /* Efeito glassmorphism */
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    width: 90%; /* Ajusta a largura para ser mais horizontal */
    max-width: 900px; /* Largura máxima para desktops */
    min-height: 480px; /* Altura mínima para o layout */
    display: flex; /* Habilita flexbox para layout lado a lado */
    flex-direction: row; /* Lado a lado por padrão */
    overflow: hidden; /* Garante que os filhos respeitem o border-radius */
    position: relative;
    z-index: 1;
}

.login-branding {
    flex: 1; /* Ocupa metade do espaço disponível */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Fundo gradiente para a seção de branding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    color: #fff; /* Texto branco na seção de branding */
}
.login-branding .login-logo {
    max-height: 100px; /* Ajusta o tamanho do logo */
    margin-bottom: 30px;
}
.login-branding h1 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    font-size: 2.5em; /* Aumenta o tamanho do título */
}
.login-branding p {
    color: rgba(255, 255, 255, 0.8); /* Texto um pouco mais suave */
    margin-bottom: 0;
}
.login-branding p a {
    color: #fff; /* Link branco */
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-form-area {
    flex: 1; /* Ocupa a outra metade do espaço */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent; /* Permite que o fundo glassmorphism do container seja visível */
}
.login-form-area h2 {
    font-weight: 600;
    color: #fff;
    margin-bottom: 30px; /* Espaço abaixo do título do formulário */
}

/* Password Input with Toggle Icon */
.password-input-wrapper {
    position: relative;
    margin-bottom: 20px; /* Espaço entre o input e o botão */
}
.password-input-wrapper .form-control {
    padding-right: 45px; /* Cria espaço para o ícone */
}
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted); /* Cor sutil para o ícone */
    transition: color 0.2s ease;
}
.password-toggle:hover {
    color: var(--primary-color); /* Cor mais vibrante ao passar o mouse */
}


/* Form Controls - Inputs, Textareas, Selects (Mantido do anterior, mas revisado para consistência) */
.form-control,
.form-select,
.form-control[type="file"] {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color); /* Garante que o texto digitado seja claro */
    border-radius: 10px;
    padding: 12px 15px;
}
.form-control:focus,
.form-select:focus {
    background: var(--input-bg); /* Mantém o fundo escuro no foco */
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
    border-color: var(--input-border-focus);
}
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7; /* Suaviza o placeholder */
}

/* Select Options in Modals */
.form-select option {
    background-color: var(--dark-bg); /* Fundo escuro para as opções */
    color: var(--text-color); /* Texto claro para as opções */
}

/* File Input Customization */
.form-control[type="file"] {
    padding-top: 8px; /* Ajusta o padding para o botão */
    padding-bottom: 8px;
}
.form-control[type="file"]::-webkit-file-upload-button {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--button-text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s ease;
}
.form-control[type="file"]::file-selector-button { /* Padrão moderno */
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--button-text-color);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.2s ease;
}
.form-control[type="file"]::-webkit-file-upload-button:hover,
.form-control[type="file"]::file-selector-button:hover {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
}

/* Checkboxes and Radios */
.form-check-input {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    appearance: none; /* Remove o estilo padrão do navegador */
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.25em;
    vertical-align: top;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e"); /* Ícone de check branco */
}
.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
    border-color: var(--input-border-focus);
}
.form-check-label {
    color: var(--text-color); /* Garante que o texto do label seja claro */
}


/* Custom Buttons (Mantido) */
.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    color: var(--button-text-color);
}
.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
    color: var(--button-text-color);
}
.error-message {
    color: #f87171;
    margin-top: 15px;
    font-size: 0.9em;
}

/* Admin Panel Layout (Mantido) */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

.sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--dark-bg);
    color: var(--text-color);
    transition: all 0.3s;
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100%;
    z-index: 1000;
}

.wrapper.active .sidebar {
    margin-left: -250px;
}

.sidebar-header {
    padding: 20px;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.sidebar-logo {
    max-height: 60px;
    margin-bottom: 10px;
}
.sidebar-header h3 {
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.components {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.components ul {
    list-style: none;
    padding: 0;
}
.components li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}
.components li a:hover,
.components li.active > a {
    color: #fff;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 50px 50px 0;
}
.components li a i {
    margin-right: 10px;
}
.sidebar-footer {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8em;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#content {
    width: 100%;
    padding-left: 250px; /* Offset for sidebar */
    transition: all 0.3s;
}

.wrapper.active #content {
    padding-left: 0;
}

/* Navbar (Mantido) */
.navbar {
    background: rgba(26, 26, 46, 0.7);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.navbar-brand {
    font-weight: 600;
    color: #fff;
}
.toggle-sidebar {
    background: var(--primary-color);
    border: none;
    color: #fff;
}
.toggle-sidebar:hover {
    background: var(--accent-color);
    color: #fff;
}
.bg-primary-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
    color: #fff;
}
.bg-success-gradient {
    background: linear-gradient(45deg, #10b981, #34d399) !important; /* Tailwind green-500/400 */
    color: #fff;
}
.bg-warning-gradient {
    background: linear-gradient(45deg, #f59e0b, #fbbf24) !important; /* Tailwind amber-500/400 */
    color: #fff;
}


/* General Admin Card Styles (Mantido) */
.card {
    background: var(--card-bg-opaque); /* Usar a variável mais opaca para cards internos */
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    color: var(--text-color);
    margin-bottom: 20px;
}
.card-header {
    background: rgba(26, 26, 46, 0.5);
    border-bottom: 1px solid var(--border-color);
    color: #fff;
    font-weight: 600;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.card-body h3, .card-body h4 {
    color: #fff;
}

/* Buttons (Mantido) */
.btn-primary-custom-lg {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 1.2em;
    color: var(--button-text-color);
    transition: all 0.3s ease;
}
.btn-primary-custom-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    color: var(--button-text-color);
}
.btn-info-custom {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--button-text-color);
}
.btn-info-custom:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--button-text-color);
}

/* Table styles (Mantido) */
.table-dark-custom {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-color);
    border-radius: 10px;
    overflow: hidden;
}
.table-dark-custom thead {
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
}
.table-dark-custom th, .table-dark-custom td {
    border-color: var(--border-color);
    vertical-align: middle;
}
.table-hover-custom tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Forms - General labels (Mantido) */
.form-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Modals - Specific Styles to override Bootstrap defaults (Mantido) */
.modal-content {
    background: var(--card-bg-opaque) !important; /* Força o fundo escuro do modal */
    border: 1px solid var(--border-color) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-color); /* Garante texto claro em geral no modal */
}
.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important; /* Borda sutil */
}
.modal-title {
    color: #fff !important; /* Título do modal sempre branco */
}
.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Torna o 'X' branco/claro */
}


/* Raffle Page Specific Styles (Mantido) */
.raffle-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: flex-start; /* Ajuste para não conflitar com centralização do body global */
    align-items: center; /* Ajuste para não conflitar com centralização do body global */
}
.raffle-header {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    width: 100%; /* Garante que o header ocupe toda a largura */
}
.header-logo-chat {
    max-height: 70px;
}
.header-logo-partner {
    max-height: 70px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.raffle-title {
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    margin: 0;
    line-height: 1.2;
}

.raffle-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 50px; /* Espaço para a lista de ganhadores */
    position: relative;
    z-index: 1;
    width: 100%; /* Garante que o main ocupe toda a largura */
    max-width: 1200px; /* Largura máxima para o conteúdo principal */
    margin-top: 50px;
}
.raffle-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    padding: 50px;
    text-align: center;
    width: 100%;
    max-width: 800px;
}
.raffle-card h2 {
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.winner-placeholder {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    min-height: 100px; /* Para manter o layout durante a animação */
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-timer {
    font-size: 3em;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(79, 70, 229, 0.6);
    margin-top: 15px;
}

.loading-spinner {
    margin-top: 30px;
    color: var(--secondary-color);
}
.loading-spinner p {
    font-size: 1.2em;
    font-weight: 600;
}

/* SweetAlert2 Customization (Mantido, com correção de cor do texto) */
.swal2-custom-popup {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 0, 0, 0.9));
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    color: var(--text-color);
}
.swal2-title {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 2.5em !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}
.winner-alert-content {
    padding: 20px;
}
.winner-alert-content h2 {
    font-weight: 800;
    font-size: 2.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: -webkit-linear-gradient(45deg, #FFD700, #FF69B4, #00BFFF); /* Gold, HotPink, DeepSkyBlue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowText 3s infinite linear;
}

@keyframes rainbowText {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.winner-alert-content h3 {
    font-weight: 700;
    font-size: 2em;
    color: var(--secondary-color) !important;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.7);
}
.winner-alert-content .h4 {
    color: var(--text-color);
    font-weight: 600;
}
.winner-prize-image {
    max-width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
.winner-prize-image:hover {
    transform: scale(1.05);
}
.swal2-success .swal2-success-ring {
    border-color: var(--secondary-color) !important;
}
.swal2-success-line-tip, .swal2-success-line-long {
    background-color: var(--secondary-color) !important;
}

/* Adicionando clareza para o texto "Obrigada por participar!" no SweetAlert2 */
.winner-alert-content p.small.text-muted {
    color: #FFFFFF !important; /* Branco puro para máxima visibilidade */
    font-weight: 500; /* Um pouco mais de peso */
    opacity: 1; /* Garante que não haja opacidade aplicada do 'text-muted' padrão */
}


/* Prizes Carousel (Mantido) */
#prizeListContainer {
    margin-top: 50px;
}
#prizesCarousel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin: 0 auto;
}
.prize-item {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.prize-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.prize-item h5 {
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(79, 70, 229, 0.7);
    border-radius: 50%;
    padding: 10px;
}

/* Last Winners List (Mantido, com correção de cor do texto) */
.last-winners-scroll-container {
    max-height: 250px;
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}
.last-winners-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.winner-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.winner-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(5px);
}
.winner-prize-thumb {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.winner-name {
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 5px;
}
.winner-prize {
    color: var(--text-color);
    font-size: 0.95em;
}

/* Adicionando clareza para o texto "Nenhum ganhador ainda. Seja o primeiro!" */
.last-winners-list p.text-muted {
    color: #FFFFFF !important; /* Branco puro para máxima visibilidade */
    font-weight: 500; /* Um pouco mais de peso */
    opacity: 1; /* Garante que não haja opacidade aplicada */
    font-size: 1.1em; /* Um pouco maior para destaque */
}

/* Estilos adicionais para o modal de múltiplos ganhadores */
.winner-item-modal {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.winner-prize-image-small {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
.winners-list-scrollable {
    max-height: 250px; /* Altura máxima para rolagem */
    overflow-y: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-right: 10px; /* Espaço para barra de rolagem */
}
/* Estilo para barra de rolagem customizada */
.winners-list-scrollable::-webkit-scrollbar {
  width: 8px;
}
.winners-list-scrollable::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}
.winners-list-scrollable::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}
.winners-list-scrollable::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Cor do texto do prêmio no modal de múltiplos ganhadores - AGORA CLARO */
.winner-item-modal .small.text-muted {
    color: var(--text-color) !important; /* Usar a cor de texto principal, ou branco puro */
    font-weight: 500; /* Torna mais legível */
    opacity: 1 !important;
}


/* Ajustes para o input-group */
.input-group-text {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}
/* Removido border-radius individual para .form-control, confiar no Bootstrap padrão ou pai. */

/* Estilos para o switch de presença */
.form-switch .form-check-input {
    min-width: 2.5em; /* Aumenta a largura do switch */
    height: 1.25em; /* Mantém a altura para não ficar muito grande */
    margin-right: 0.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0, 0, 0, 0.25)'/%3e%3c/svg%3e"); /* Círculo escuro para não checado */
    background-position: left center;
    border-color: var(--border-color);
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, background-position 0.15s ease-in-out, box-shadow 0.15s ease-in-out; /* Adiciona transition para background-position */
}
.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0, 0, 0, 0.25)'/%3e%3c/svg%3e");
    border-color: var(--input-border-focus); /* Garante que o foco seja visível */
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}
.form-switch .form-check-input:checked {
    background-color: var(--success-color); /* Cor de sucesso */
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); /* Círculo branco para checado */
    background-position: right center;
}
.form-switch .form-check-label {
    margin-left: 0.5rem;
    color: var(--text-color);
}


/* Responsive adjustments */
@media (max-width: 992px) { /* Ajusta o breakpoint para tablets e celulares */
    body {
        /* Remover centralização em páginas que não sejam de login */
        display: block;
        align-items: stretch;
        justify-content: flex-start;
    }
    .login-container {
        flex-direction: column; /* Pilha verticalmente em telas menores */
        max-width: 450px; /* Largura menor para o container */
        width: 90%;
        min-height: unset; /* Remove min-height para se ajustar ao conteúdo */
        padding: 0;
        /* Re-centralizar o container de login */
        margin-left: auto;
        margin-right: auto;
        margin-top: 50px; /* Adiciona uma margem superior */
        margin-bottom: 50px;
    }
    .login-branding {
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        border-bottom-left-radius: 0; /* Remove o border-radius inferior na parte de branding */
        padding: 30px 20px; /* Ajusta o padding */
    }
    .login-form-area {
        border-top-right-radius: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        padding: 30px 20px;
    }
    .login-branding h1 { font-size: 2em; }
    .login-branding .login-logo { max-height: 80px; margin-bottom: 20px; }

    /* Outras seções admin e raffle (já estavam com media queries) */
    .sidebar {
        margin-left: -250px;
    }
    .wrapper.active .sidebar {
        margin-left: 0;
    }
    #content {
        padding-left: 0;
    }
    .toggle-sidebar {
        display: block;
    }
    .raffle-header .container {
        flex-direction: column;
    }
    .raffle-title {
        margin: 10px 0;
        font-size: 1.8em;
    }
    .header-logo-chat, .header-logo-partner {
        max-height: 50px;
    }
    .raffle-card {
        padding: 30px;
    }
    .raffle-card h2 {
        font-size: 1.8em;
    }
    .winner-placeholder {
        font-size: 1.8em;
    }
    .countdown-timer {
        font-size: 2.5em;
    }
    .btn-primary-custom-lg {
        font-size: 1em;
        padding: 12px 25px;
    }
    /* Ajustes específicos para os controles do sorteio na página raffle.php em telas menores */
    .raffle-card .d-flex.flex-wrap {
        flex-direction: column; /* Empilha os itens verticalmente */
        align-items: stretch !important; /* Estica para preencher a largura */
    }
    .raffle-card .d-flex.flex-wrap > div {
        width: 100% !important; /* Cada item ocupa a largura total */
        margin-right: 0 !important; /* Remove margem horizontal */
        margin-bottom: 15px !important; /* Adiciona margem inferior para espaçamento */
    }
    /* Ajusta o input-group de quantidade para ocupar a largura total no modo empilhado */
    .raffle-card .d-flex.flex-wrap .input-group {
        max-width: 100% !important;
    }
}