:root {
    --preto: #0d0d1a;
    --preto-azulado: #111827;
    --roxo-brilhante: #a855f7;
    --roxo-escuro: #8b5cf6;
    --laranja-brilhante: #f97316;
    --branco: #f1f5f9;
    --cinza-claro: #94a3b8;
    --cinza-medio: #475569;
    --cinza-escuro: #334155;
    --discord-blurple: #5865F2;
    --font-corpo: 'Poppins', sans-serif;
    --font-cursive: 'Dancing Script', cursive;
    --sidebar-width: 260px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--preto);
    background-image: radial-gradient(circle at 10% 10%, rgba(168, 85, 247, 0.15), transparent 30%),
                      radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.1), transparent 40%);
    color: var(--branco);
    font-family: var(--font-corpo);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow-x: hidden;a
}
.page-container { display: none; width: 100%; justify-content: center; align-items: center; }
.page-container.active { display: flex; animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.container { width: 100%; max-width: 500px; text-align: center; }
header { margin-bottom: 2rem; }
.logo-main-title { display: flex; justify-content: center; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.logo-cursive { font-family: var(--font-cursive); font-size: 3.5rem; color: var(--roxo-brilhante); text-shadow: 0 0 15px var(--roxo-brilhante); display: inline-block; white-space: nowrap; }
.logo-department { font-family: var(--font-corpo); font-weight: 600; font-size: 1.4rem; color: var(--branco); text-transform: uppercase; letter-spacing: 1px; padding-bottom: 5px; }
.logo-subtitle { display: block; font-size: 0.9rem; color: var(--laranja-brilhante); letter-spacing: 3px; text-transform: uppercase; margin-top: -0.5rem; }
.hero h1 { font-family: var(--font-corpo); font-size: 2.5rem; margin-bottom: 1rem; color: var(--cinza-claro); min-height: 48px; font-weight: 400; letter-spacing: 1px; }
.hero h1 span { display: inline-block; opacity: 0; filter: blur(4px); animation: fadeInLetter 0.5s ease-out forwards; animation-delay: calc(0.05s * var(--i)); }
@keyframes fadeInLetter { to { opacity: 1; filter: blur(0); } }
.hero p { font-size: 1rem; margin-bottom: 2.5rem; color: var(--cinza-claro); }
.discord-login-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; background-color: rgba(30, 30, 45, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--cinza-escuro); color: var(--branco); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.8rem 2rem; border-radius: 8px; transition: background-color 0.3s, border-color 0.3s, transform 0.2s; }
.discord-login-btn:hover { background-color: var(--discord-blurple); border-color: var(--discord-blurple); transform: translateY(-3px) scale(1.05); }
.painel-container { width: 100%; max-width: 800px; padding: 2rem; background-color: rgba(30, 30, 45, 0.3); border: 1px solid var(--cinza-escuro); border-radius: 16px; }
.user-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--cinza-escuro); }
.user-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--roxo-brilhante); }
.welcome-text { font-size: 2rem; font-weight: 600; }
.welcome-subtext { color: var(--cinza-claro); }
.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.nav-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 2rem 1rem; text-decoration: none; color: var(--branco); font-weight: 600; background-color: rgba(42, 42, 60, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--cinza-escuro); border-radius: 12px; transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.nav-button:hover { transform: translateY(-5px); background-color: rgba(60, 60, 80, 0.7); border-color: var(--roxo-brilhante); }
.nav-button svg { width: 32px; height: 32px; color: var(--roxo-brilhante); }
.painel-footer { margin-top: 3rem; text-align: center; }
.painel-footer a { color: var(--cinza-claro); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.painel-footer a:hover { color: var(--laranja-brilhante); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.4s ease; }
.button-group { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem;}
.btn { padding: 0.8rem 1.5rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background-color 0.3s, opacity 0.3s; font-family: var(--font-corpo); }
.btn:disabled { background-color: var(--cinza-escuro); color: var(--cinza-claro); cursor: not-allowed; opacity: 0.6; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-primary { background-color: var(--roxo-brilhante); color: var(--branco); }
.btn-primary:hover:not(:disabled) { background-color: var(--roxo-escuro); }
.btn-secondary { background-color: var(--cinza-escuro); color: var(--cinza-claro); }
.btn-success { background-color: #16a34a; color: var(--branco); }
.btn-danger { background-color: #dc2626; color: var(--branco); }
.input-group { text-align: left; margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--cinza-claro); }
.input-group input, .input-group textarea, .input-group select { width: 100%; padding: 0.8rem 1rem; background-color: rgba(13, 13, 26, 0.7); border: 1px solid var(--cinza-escuro); border-radius: 8px; color: var(--branco); font-size: 1rem; transition: border-color 0.3s; font-family: var(--font-corpo); }
.input-group input:focus, .input-group textarea:focus, .input-group select:focus { outline: none; border-color: var(--roxo-brilhante); }
.input-group textarea { min-height: 80px; resize: vertical; }
.input-group label input[type="checkbox"] { margin-right: 0.5rem; accent-color: var(--roxo-brilhante); transform: scale(1.2); }
select[multiple] { min-height: 250px; padding: 0.5rem; }
select.small-select { min-height: 120px; }
select option { padding: 0.5rem; color: var(--cinza-claro); }
select option:checked { background: var(--roxo-brilhante); color: var(--branco); }
.search-input-local { margin-bottom: 0.5rem; padding: 0.6rem 1rem !important; font-size: 0.9rem !important; }
.paste-area { margin-top: 1rem; border: 2px dashed var(--cinza-escuro); padding: 2rem; text-align: center; color: var(--cinza-claro); border-radius: 8px; cursor: pointer; }
.preview-image { max-width: 100%; margin-top: 1rem; border-radius: 8px; }
#officer-selector-wrapper { display: none; margin-top: 1rem; }
.checklist-item { margin-bottom: 0.75rem; }
#quiz-question-display { min-height: 60px; font-size: 1.2rem; font-weight: 600; text-align: center; margin: 1.5rem 0; }
#quiz-counter { color: var(--cinza-claro); margin-bottom: 1rem; text-align: center; }
.discord-invite-box { background-color: rgba(88, 101, 242, 0.1); border: 1px solid var(--discord-blurple); border-radius: 12px; padding: 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.discord-invite-content p { font-weight: 600; margin-bottom: 0.5rem; }
.copy-link-container { display: flex; gap: 0.5rem; margin-top: 1rem; }
.recruitment-summary-box { border: 1px solid var(--cinza-escuro); border-radius: 8px; padding: 1rem 1.5rem; margin-top: 2rem; text-align: left; }
.recruitment-summary-box h4 { margin-bottom: 1rem; color: var(--laranja-brilhante); }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.5rem 1.5rem; margin: 1.5rem 0; text-align: left; }
ul.summary-list { list-style: none; padding: 0.5rem 0 0 0.5rem; }
ul.summary-list li { margin-bottom: 0.25rem; }
input[type="datetime-local"] { color-scheme: dark; }
.admin-panel-full { margin-top: 2.5rem; background-color: rgba(13, 13, 26, 0.5); border: 1px solid var(--cinza-escuro); border-radius: 12px; width: 100%; }
.admin-tabs { display: flex; border-bottom: 1px solid var(--cinza-escuro); padding: 0 1.5rem; flex-wrap: wrap; }
.admin-tab-button { padding: 1rem 1.5rem; cursor: pointer; background: transparent; border: none; color: var(--cinza-claro); font-size: 1rem; font-weight: 600; position: relative; transition: color 0.3s; font-family: var(--font-corpo); }
.admin-tab-button:hover { color: var(--branco); }
.admin-tab-button.active { color: var(--roxo-brilhante); }
.admin-tab-button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background-color: var(--roxo-brilhante); }
.tab-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.tab-header h2 { margin-bottom: 0; font-size: 1.5rem; }
.search-container input { width: 300px; padding: 0.6rem 1rem; background-color: rgba(13, 13, 26, 0.7); border: 1px solid var(--cinza-escuro); border-radius: 8px; color: var(--branco); font-size: 1rem; transition: border-color 0.3s; }
.search-container input:focus { outline: none; border-color: var(--roxo-brilhante); }
@media (max-width: 768px) { .search-container input { width: 100%; } }
.records-container-detailed { display: flex; flex-direction: column; gap: 1rem; }
.recruitment-summary-card { background-color: rgba(30, 30, 45, 0.5); border: 1px solid var(--cinza-escuro); border-radius: 12px; overflow: hidden; }
.recruitment-summary-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.5rem; cursor: pointer; transition: background-color 0.2s; }
.recruitment-summary-header:hover { background-color: rgba(42, 42, 60, 0.3); }
.recruitment-summary-header h3 { font-size: 1.1rem; color: var(--branco); pointer-events: none; }
.recruitment-summary-header h3 span { color: var(--cinza-claro); font-weight: 400; }
.summary-details { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out, padding 0.5s ease-out, border-top-width 0.3s ease-out; border-top: 0px solid var(--cinza-escuro); padding: 0 1.5rem; }
.recruitment-summary-card.expanded .summary-details { max-height: 2500px; padding: 1.5rem; border-top-width: 1px; }
.recruitment-summary-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.info-block { display: flex; flex-direction: column; gap: 0.25rem; }
.info-block .label { font-size: 0.8rem; color: var(--cinza-claro); text-transform: uppercase; }
.info-block .value { font-size: 1rem; font-weight: 600; word-wrap: break-word; }
.value.status-aprovado { color: #22c55e; }
.value.status-reprovado { color: #ef4444; }
.recruitment-summary-screenshots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.screenshot-container { display: flex; flex-direction: column; gap: 0.5rem; }
.screenshot-container h4 { font-size: 1rem; font-weight: 600; color: var(--cinza-claro); }
.screenshot-container img { width: 100%; border-radius: 8px; border: 1px solid var(--cinza-escuro); }
@media (max-width: 900px) { .recruitment-summary-screenshots { grid-template-columns: 1fr; } }


/* ========================================= */
/* ESTILOS PARA O NOVO PAINEL DE ADMIN       */
/* ========================================= */
body { padding: 0; }
.page-container.admin-fullscreen { max-width: 100%; width: 100%; height: 100vh; padding: 0; align-items: flex-start; }
.admin-sidebar { width: var(--sidebar-width); height: 100%; background-color: var(--preto-azulado); padding: 1.5rem; display: flex; flex-direction: column; border-right: 1px solid var(--cinza-escuro); flex-shrink: 0; }
.sidebar-header { text-align: center; margin-bottom: 2.5rem; }
.sidebar-header .logo-cursive { font-size: 2.8rem; }
.sidebar-header .logo-department { font-size: 1rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-nav-link { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; border-radius: 8px; text-decoration: none; color: var(--cinza-claro); font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.admin-nav-link:hover { background-color: var(--cinza-escuro); color: var(--branco); }
.admin-nav-link.active { background-color: var(--roxo-brilhante); color: var(--branco); }
.admin-nav-link svg { width: 24px; height: 24px; flex-shrink: 0; }
.sidebar-footer { margin-top: auto; }
.sidebar-footer a { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; text-decoration: none; color: var(--cinza-claro); font-weight: 600; transition: color 0.2s; }
.sidebar-footer a:hover { color: var(--laranja-brilhante); }
.sidebar-footer a svg { width: 20px; height: 20px; }

.admin-main-content { flex-grow: 1; height: 100%; overflow-y: auto; padding: 2.5rem 3rem; background-color: #1f2937; }
.admin-main-content .admin-tab-content { display: none; }
.admin-main-content .admin-tab-content.active { display: block; }
.content-header h1 { font-size: 2.2rem; font-weight: 600; margin-bottom: 0.25rem; }
.content-header p { font-size: 1rem; color: var(--cinza-claro); margin-bottom: 2rem; }
.content-body { background-color: var(--preto-azulado); border: 1px solid var(--cinza-escuro); border-radius: 12px; padding: 2rem; }

.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.admin-table th, .admin-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--cinza-escuro); vertical-align: middle; }
.admin-table th { color: var(--cinza-claro); text-transform: uppercase; font-size: 0.75rem; font-weight: 600; }
.admin-table tbody tr:hover { background-color: rgba(42, 42, 60, 0.3); }
.admin-table pre { white-space: pre-wrap; word-break: break-all; background-color: rgba(13, 13, 26, 0.7); padding: 0.5rem; border-radius: 4px; font-size: 0.8rem; max-height: 150px; overflow-y: auto; }
.admin-table select { width: 100%; padding: 0.5rem; background-color: rgba(13, 13, 26, 0.9); border: 1px solid var(--cinza-escuro); border-radius: 6px; color: var(--branco); font-family: var(--font-corpo); font-size: 0.9rem; cursor: pointer; }
.admin-table select:focus { outline: none; border-color: var(--roxo-brilhante); }
.status-badge { padding: 0.25rem 0.6rem; border-radius: 12px; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; }
.status-badge.status-active { background-color: rgba(34, 197, 94, 0.2); color: #22c55e; }
.status-badge.status-banned { background-color: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Estilos para a Aba de Configurações e Cargos */
.settings-section { border-bottom: 1px solid var(--cinza-escuro); padding-bottom: 2rem; margin-bottom: 2rem; }
.settings-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0;}
.settings-section h3 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--laranja-brilhante); }
.create-role-form { display: flex; gap: 1rem; align-items: center; }
.create-role-form input[type="text"] {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    background-color: rgba(13, 13, 26, 0.7);
    border: 1px solid var(--cinza-escuro);
    border-radius: 8px;
    color: var(--branco);
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: var(--font-corpo);
}
.create-role-form input[type="text"]:focus {
    outline: none;
    border-color: var(--roxo-brilhante);
}

/* Estilo para Gerenciador de IPs */
.ip-tags-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; padding: 0.5rem; background-color: rgba(13,13,26,0.7); border-radius: 8px; min-height: 40px;}
.ip-tag { background-color: var(--cinza-escuro); padding: 0.25rem 0.75rem; border-radius: 16px; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.ip-tag button { background: none; border: none; color: var(--cinza-claro); cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0 0 0 0.25rem; }
.ip-tag button:hover { color: var(--branco); }

/* Estilo para Chaves Toggle (Switch) */
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--cinza-escuro); transition: .4s; border-radius: 28px; }
.toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .toggle-slider { background-color: var(--roxo-brilhante); }
input:checked + .toggle-slider:before { transform: translateX(22px); }
/* Versão pequena do Toggle para listas densas */
.toggle-switch.small { width: 40px; height: 22px; }
.toggle-switch.small .toggle-slider:before { height: 16px; width: 16px; left: 3px; bottom: 3px; }
.toggle-switch.small input:checked + .toggle-slider:before { transform: translateX(18px); }

/* Estilos para Grade de Permissões */
#roles-list-container { display: flex; flex-direction: column; gap: 1.5rem; }
#roles-list-container .recruitment-summary-header h3 { font-size: 1.5rem; font-weight: 600; color: var(--branco); }
.permission-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.permission-group {
    background-color: rgba(13, 13, 26, 0.5);
    border: 1px solid var(--cinza-escuro);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    flex-grow: 1;
    min-width: 250px;
}
.permission-group h4 {
    font-size: 0.8rem;
    color: var(--laranja-brilhante);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cinza-medio);
}
.permission-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 0;
}
.permission-item:not(:last-child){
    margin-bottom: 0.25rem;
}
.permission-item span { font-size: 0.9rem; color: var(--cinza-claro); }


/* ========================================= */
/* ESTILOS PARA O MODAL DE ALERTA CUSTOMIZADO*/
/* ========================================= */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.custom-alert-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.custom-alert-box {
    background-color: var(--preto-azulado);
    border: 1px solid var(--cinza-escuro);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.custom-alert-overlay.visible .custom-alert-box {
    transform: scale(1);
}
.custom-alert-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--branco);
}
.custom-alert-box p {
    font-size: 1rem;
    color: var(--cinza-claro);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.custom-alert-box .btn {
    width: 100%;
    padding: 0.9rem;
}

/* ========================================= */
/* NOVOS ESTILOS (MELHORIAS DE UI/UX)        */
/* ========================================= */

/* FIX CONTROLE ADMINISTRATIVO TABS */
.admin-panel-full .admin-tab-content { display: none; padding: 2rem; }
.admin-panel-full .admin-tab-content.active { display: block; animation: fadeIn 0.4s ease; }

/* AJUSTE 4: ESTILOS PÁGINA CONTABILIDADE E PAGINAÇÃO */
.accounting-card { background-color: rgba(30, 30, 45, 0.5); border: 1px solid var(--cinza-escuro); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.accounting-card-header { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--cinza-escuro); }
.accounting-card-info { flex-grow: 1; }
.accounting-card-info h3 { font-size: 1.25rem; font-weight: 600; }
.total-bonus { font-size: 1.5rem; font-weight: 700; color: var(--laranja-brilhante); text-align: right; }
.pagination-indicator {
    padding: 0 1rem;
    align-self: center;
    font-weight: 600;
    color: var(--cinza-claro);
}

/* ESTILOS ADMIN BONUS SETTINGS */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.course-bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem 1.5rem; }
.course-bonus-grid .input-group { margin-bottom: 0; }

/* CONTROLE POLICIAL REDESIGN E NOVAS COLUNAS */
.admin-table-container { overflow-x: auto; }
.admin-table .officer-avatar-name { display: flex; align-items: center; gap: 1rem; }
.admin-table .officer-avatar-name img { width: 40px; height: 40px; border-radius: 50%; }
.admin-table .officer-avatar-name span { font-weight: 600; }
.admin-table .registration-source {
    font-style: italic;
    color: var(--cinza-claro);
    font-size: 0.85rem;
}
.details-modal { max-width: 600px; text-align: left; }

/* ========= INÍCIO DA ALTERAÇÃO: ESTILOS PARA O MODAL DE DETALHES ========= */
#police-detail-content .officer-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--cinza-escuro);
}
#police-detail-content .officer-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}
#police-detail-content .officer-card-identity h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--branco);
}
#police-detail-content .officer-card-identity p {
    color: var(--cinza-claro);
    margin: 0.25rem 0 0;
    font-size: 1rem;
}
#police-detail-content .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cinza-escuro);
    font-size: 0.9rem;
}
#police-detail-content .stat-item:last-child {
    border-bottom: none;
}
#police-detail-content .stat-label {
    color: var(--cinza-claro);
}
#police-detail-content .stat-value {
    font-weight: 600;
    color: var(--branco);
}
#police-detail-content .stat-value.status-aprovado { color: #22c55e; }
#police-detail-content .stat-value.status-reprovado { color: #ef4444; }
/* ========= FIM DA ALTERAÇÃO ========= */


/* MELHORIAS FORMULÁRIOS */
.radio-group { display: flex; gap: 2rem; margin-bottom: 0.5rem; }
.radio-label { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.radio-label input { width: auto; accent-color: var(--roxo-brilhante); transform: scale(1.2); }
.alert-warning { background-color: rgba(249, 115, 22, 0.1); border-left: 4px solid var(--laranja-brilhante); padding: 1rem; margin-top: 1rem; border-radius: 4px; font-size: 0.9rem; }
.toggle-group { display: flex; flex-direction: column; gap: 1rem; }
.toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem 1.5rem; }
.toggle-grid .permission-item { padding: 0.5rem 0; }

/* SELETOR CUSTOMIZADO */
.custom-selector-container { display: flex; flex-direction: column; gap: 0.5rem; }
.custom-selector-list {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--cinza-escuro);
    border-radius: 8px;
    padding: 0.5rem;
    background-color: rgba(13, 13, 26, 0.7);
}
.custom-selector-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.custom-selector-item:hover { background-color: var(--cinza-escuro); }
.custom-selector-item.selected { background-color: var(--roxo-brilhante); font-weight: 600; }
.custom-selector-item input[type="checkbox"] { display: none; }


/* =============================================== */
/* NOVOS ESTILOS PARA AS FUNCIONALIDADES ADICIONAIS */
/* =============================================== */

/* Estilo para layout de editor e preview lado a lado */
.editor-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
@media (max-width: 1024px) {
    .editor-layout { grid-template-columns: 1fr; }
}

/* Estilo para a pré-visualização do Embed */
.embed-preview-wrapper {
    background-color: #2f3136; /* Cor de fundo do Discord */
    border-radius: 8px;
    padding: 1rem;
    position: sticky;
    top: 2rem;
}
.embed-preview {
    background-color: #2b2d31; /* Cor do embed */
    border-left: 4px solid var(--roxo-brilhante);
    border-radius: 4px;
    padding: 0.8rem 1rem;
    text-align: left;
    word-break: break-word;
}
.embed-preview-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}
.embed-preview-description {
    font-size: 0.9rem;
    color: #dcddde;
    line-height: 1.4;
}
.embed-preview-footer {
    font-size: 0.75rem;
    color: #a0a0a0;
    margin-top: 0.8rem;
}
.embed-preview-image {
    max-width: 100%;
    border-radius: 4px;
    margin-top: 1rem;
}

/* Input de cor */
.input-group input[type="color"] {
    padding: 0;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    background-color: transparent;
}

/* Gerenciador de Cursos e Perguntas */
.list-manager-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background-color: rgba(13, 13, 26, 0.7);
    margin-bottom: 0.8rem;
}
.list-manager-item .input-group {
    flex-grow: 1;
    margin-bottom: 0;
}
.list-manager-item .input-group input {
    background-color: transparent;
    border: none;
    padding: 0.2rem;
}
.list-manager-item .input-group input:focus {
    background-color: var(--preto);
}
.list-manager-item .btn-danger {
    padding: 0.5rem;
    line-height: 1;
}

/* Seletor de Canais para Avisos */
#announcement-channel-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--cinza-escuro);
    border-radius: 8px;
    padding: 0.5rem;
    background-color: rgba(13, 13, 26, 0.7);
}
#announcement-channel-list .permission-item {
    padding: 0.5rem;
}

/* --- ESTILOS PARA CONFIGURAÇÕES AVANÇADAS --- */
.dynamic-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.list-manager-item .list-manager-label {
    flex-grow: 1;
    font-weight: 600;
}
.list-manager-item input[type="number"] {
    width: 80px;
    text-align: center;
}
.list-manager-item input.flex-grow {
    flex-grow: 1;
}
.list-manager-item .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-grow: 1;
}
.list-manager-item .input-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--cinza-claro);
    margin-bottom: 0;
    padding-left: 0.2rem;
}

/* ========================================= */
/* ESTILOS PARA PÁGINA DE BOTS (REDESIGN)    */
/* ========================================= */
.bot-deployment-panel {
    margin-top: 2rem;
    width: 100%;
}
.bot-deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.bot-panel-group h3 {
    font-size: 1.25rem;
    color: var(--laranja-brilhante);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--cinza-escuro);
}
.bot-panel-card {
    background-color: rgba(30, 30, 45, 0.7);
    border: 1px solid var(--cinza-escuro);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}
.bot-panel-card:hover {
    transform: translateY(-3px);
    border-color: var(--roxo-brilhante);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.1);
}
.panel-card-content {
    text-align: left;
}
.panel-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--branco);
    margin-bottom: 0.25rem;
}
.panel-card-description {
    font-size: 0.85rem;
    color: var(--cinza-claro);
    line-height: 1.5;
}
.bot-panel-card .deploy-button {
    padding: 0.6rem 1.2rem;
    flex-shrink: 0;
}

/* ========================================= */
/* ESTILOS ADICIONADOS PARA AS NOVAS FEATURES */
/* ========================================= */

/* NOVO: Resumo Final do Recrutamento (Req. #12) */
.final-result-badge {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--branco);
}
.final-result-badge.status-aprovado {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}
.final-result-badge.status-reprovado {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* NOVO: Painel de Estatísticas - Controle Policial (Req. #15) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background-color: var(--preto-azulado);
    border: 1px solid var(--cinza-escuro);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.stat-card .stat-title {
    font-size: 0.9rem;
    color: var(--cinza-claro);
    font-weight: 600;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--branco);
}
#stats-total-victories { color: #22c55e; }
#stats-total-defeats { color: #ef4444; }

/* AJUSTES PAINEL ADMIN */

/* Gerenciador de Itens de Lista (para Tickets, Cargos de Entrada, etc) */
.list-manager-item .input-group {
    flex-grow: 1;
    margin-bottom: 0;
}
.list-manager-item.compact { /* Para listas com múltiplos inputs */
    display: grid;
    grid-template-columns: 2fr 1fr 3fr auto;
    gap: 1rem;
    align-items: flex-end;
}

.list-manager-item .btn {
    flex-shrink: 0;
}
/* ========================================= */
/* REFORMULAÇÃO - PÁGINA CONTROLE ADMINISTRATIVO */
/* ========================================= */

#page-controle-administrativo .painel-container {
    background-color: transparent;
    border: none;
    padding: 0;
}

#page-controle-administrativo .admin-panel-full {
    background-color: var(--preto-azulado);
    border: 1px solid var(--cinza-escuro);
    margin-top: 1.5rem;
}

#page-controle-administrativo .admin-tabs {
    padding: 0 0.5rem;
    background-color: rgba(30, 30, 45, 0.5);
}

#page-controle-administrativo .admin-tab-content {
    min-height: 50vh;
}

/* Ajuste na tabela de blacklist dentro do painel */
#tab-content-blacklist-view .admin-table pre {
    white-space: pre-wrap;
    word-break: break-all;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    max-height: none;
    overflow-y: visible;
    color: var(--cinza-claro);
}

#tab-content-blacklist-view .admin-table td {
    vertical-align: top;
}