/* ============================================
   FORSAKEN WORLD - MODERN THEME 2024
   Design Moderno e Imponente
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Sobrescrever classes do Bootstrap para fundo escuro */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-dark {
    color: var(--text-secondary) !important;
}

.text-body {
    color: var(--text-primary) !important;
}

p, span, div, label, a, li, td, th {
    color: var(--text-primary);
}

/* Forçar cor branca em elementos small e form-text - Alta prioridade */
small,
small.form-text,
small.text-muted,
small.form-text.text-muted,
.form-text,
.form-text.text-muted {
    color: var(--text-primary) !important;
}

/* Específico para elementos com id="senha" e id="real" */
small#senha,
small#real {
    color: var(--text-primary) !important;
}

p.text-muted, 
span.text-muted, 
div.text-muted,
small.text-muted {
    color: var(--text-muted) !important;
}

/* Links sempre visíveis */
a:not(.btn):not(.badge) {
    color: var(--primary-light);
}

a:not(.btn):not(.badge):hover {
    color: var(--primary-color);
}

/* Checkbox e labels dos formulários */
.checkbox label,
.checkbox label span {
    color: var(--text-primary) !important;
}

.checkbox label span {
    opacity: 0.9;
}

/* Links dentro de .links_ */
.links_ a,
._links a,
.links a {
    color: var(--primary-light) !important;
}

.links_ a:hover,
._links a:hover,
.links a:hover {
    color: var(--primary-color) !important;
}

:root {
    /* Cores de Acento */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --success-color: #38ef7d;
    --accent-color: #ec4899;

    /* Fundos Neutros (Sem tom azulado) */
    --dark-bg: #121418;        /* Fundo principal */
    --dark-sidebar: #0e1013;   /* Sidebar e Navbar */
    --dark-card: #1e2129;      /* Cards */
    --dark-header: #272b36;    /* Headers */
    --input-bg: #15181f;       /* Inputs */

    /* Textos e Bordas */
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2f3340;   /* Borda Cinza Escura */

    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, #272b36 0%, #1e2129 100%);
    
    /* Variáveis adicionais para compatibilidade */
    --primary-light: #764ba2;
    --secondary-color: #764ba2;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-muted: #9ca3af;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    /* Gradientes adicionais */
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background especial para páginas de login/cadastro quando não há sidebar */
/* Força o background escuro mesmo quando há estilos inline */
body:not(:has(.sidebar)) {
    background: var(--dark-bg) !important;
    background-attachment: fixed !important;
    position: relative;
}

body:not(:has(.sidebar))::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(56, 239, 125, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

body:not(:has(.sidebar))::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(47, 51, 64, 0.1) 2px, rgba(47, 51, 64, 0.1) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(47, 51, 64, 0.1) 2px, rgba(47, 51, 64, 0.1) 4px);
    z-index: 0;
    pointer-events: none;
}

/* Container para páginas de login/cadastro */
body:not(:has(.sidebar)) .container {
    position: relative;
    z-index: 1;
}

/* Força o estilo do perfectworld mesmo quando há estilos inline */
body:not(:has(.sidebar)) .perfectworld {
    background: rgba(30, 33, 41, 0.85) !important;
    border: 1px solid var(--border-color) !important;
    margin-top: 3rem !important;
    border-radius: 20px !important;
}

/* ============================================
   SIDEBAR MODERNO COM LOGO EM DESTAQUE
   ============================================ */

.sidebar-dark {
    background: var(--dark-sidebar);
    background-image: 
        radial-gradient(at 0% 0%, rgba(102, 126, 234, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(118, 75, 162, 0.05) 0px, transparent 50%);
    box-shadow: var(--shadow-xl);
    border-right: 1px solid var(--border-color);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    width: 17rem;
    flex-shrink: 0;
    box-sizing: border-box;
}

.sidebar-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-primary);
    opacity: 0.1;
    z-index: 0;
}

.sidebar-menu {
    position: relative;
    z-index: 1;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Logo removido da sidebar - será exibido no header da página */
.sidebar-dark .logo,
.sidebar .logo {
    display: none !important;
}

/* Garantir que elementos dentro da sidebar não sejam cortados */
.sidebar-dark * {
    box-sizing: border-box;
}

/* Perfil do Usuário */
.sidebar-dark .cp {
    padding: 1.25rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    margin: 1rem;
    margin-top: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    overflow: visible;
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: calc(100% - 2rem);
}

.sidebar-dark .cp .nome {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.sidebar-dark .cp .usuario {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.sidebar-dark .cp .loja {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: block;
    text-align: center;
}

.sidebar-dark .cp .loja i {
    margin-left: 0.25rem;
}


.sidebar-dark .cp center {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.sidebar-dark .mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    margin: 0;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    flex: 1 1 auto;
    min-width: 80px;
    max-width: calc(50% - 0.25rem);
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

.sidebar-dark .mini-btn.recarregar {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.sidebar-dark .mini-btn.recarregar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.sidebar-dark .mini-btn.sair {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.sidebar-dark .mini-btn.sair:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Menu de Navegação Moderno */
.sidebar-dark .list {
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-dark .list-item {
    margin-bottom: 0.5rem;
}

.sidebar-dark .list-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 1.5rem 0 0.75rem 0;
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
}

.sidebar-dark .list-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

.sidebar-dark .list-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-dark .list-link:hover,
.sidebar-dark .list-link.link-current {
    background: rgba(102, 126, 234, 0.15);
    color: var(--text-primary);
    transform: translateX(5px);
}

.sidebar-dark .list-link.link-current::before {
    transform: scaleY(1);
}

/* Ícones da sidebar - sempre brancos */
.sidebar-dark .list-link .list-icon,
.sidebar-dark .list-link .fa,
.sidebar-dark .list-link .ma,
.sidebar-dark .list-icon i,
.sidebar-dark .list-link i,
.sidebar-dark .list-link .fa,
.sidebar-dark .list-link .ma {
    margin-right: 0.875rem;
    width: 20px;
    text-align: center;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    color: #ffffff !important; /* Ícones sempre brancos */
}

/* Sobrescrever qualquer cor de ícone na sidebar */
.sidebar-dark .list-link *,
.sidebar-dark .list-item *,
.sidebar-dark .list * i,
.sidebar-dark i.fa,
.sidebar-dark .ma {
    color: #ffffff !important;
}

.sidebar-dark .list-link:hover .list-icon,
.sidebar-dark .list-link:hover .fa,
.sidebar-dark .list-link:hover .ma,
.sidebar-dark .list-link.link-current .list-icon,
.sidebar-dark .list-link.link-current .fa,
.sidebar-dark .list-link.link-current .ma {
    color: #ffffff !important; /* Ícones sempre brancos no hover e ativo */
    transform: scale(1.1);
}

.sidebar-dark .link-arrow::after {
    content: '\f0c9'; /* Ícone de hambúrguer (bars) */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s ease;
    color: #ffffff !important;
    font-size: 0.875rem;
}

.sidebar-dark .link-arrow.active::after {
    transform: rotate(90deg); /* Rotaciona ao expandir */
}

.sidebar-dark .list-hidden {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    border-left: 2px solid var(--border-color);
    margin-left: 1rem;
}

/* ============================================
   CONTEÚDO PRINCIPAL
   ============================================ */

.content {
    background: transparent;
    padding: 2rem;
    min-height: calc(100vh - 150px); /* Altura mínima menos espaço do footer */
    width: 100%;
    box-sizing: border-box;
}

/* Removido - agora todas as páginas usam content-box como wrapper */

/* Garantir que container-fluid dentro de content-box seja transparente */
.content-box .container-fluid,
.content-box .content .container-fluid {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Remover padding e estilos do content quando está dentro de content-box */
.content-box .content {
    background: transparent !important;
    padding: 0 !important;
    min-height: auto !important;
}

/* Garantir que content-box ocupe 100% da largura */
.content-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Header com Logo */


.content-box {
    background: rgba(30, 33, 41, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: var(--shadow-lg) !important;
    margin-bottom: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.content-box h1,
.content-box h2,
.content-box h3,
.content-box h4,
.content-box h5 {
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ============================================
   CARDS MODERNOS
   ============================================ */

.card-box {
    background: var(--gradient-dark);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-box:hover::before {
    transform: scaleX(1);
}

.card-box.bg-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.card-box.bg-blue {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.card-box.bg-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-box.bg-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-box .inner {
    position: relative;
    z-index: 1;
}

.card-box .inner small {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-bottom: 1rem;
}

.card-box .inner h3 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.card-box .icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    opacity: 0.2;
}

.card-box-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    display: block;
    transition: all 0.3s ease;
}

.card-box:hover .card-box-footer {
    color: white;
    transform: translateX(5px);
}

/* ============================================
   LOGO IMPONENTE PARA LOGIN/CADASTRO
   ============================================ */

body:not(:has(.sidebar)) .container {
    padding-top: 2rem;
}

body:not(:has(.sidebar)) .logo-container {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

body:not(:has(.sidebar)) .logo-container img {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.5));
    transition: all 0.4s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

body:not(:has(.sidebar)) .logo-container img:hover {
    transform: translateY(-5px) scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(118, 75, 162, 0.7));
}

/* Esconder banner/navbar nas páginas de login/cadastro */
body:not(:has(.sidebar)) .banner,
body:not(:has(.sidebar)) .navbar.profile-stats {
    display: none !important;
}

/* ============================================
   PÁGINA DE LOGIN MODERNA
   ============================================ */

.perfectworld {
    background: rgba(30, 33, 41, 0.85) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 10px 20px -5px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 3.5rem !important;
    margin-top: 1rem !important;
    margin-bottom: 3rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.perfectworld::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.perfectworld h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.perfectworld .links_ {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.perfectworld .links_ a {
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.perfectworld .links_ a:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Formulários Modernos */
.form-control {
    background: var(--input-bg);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 500;
}

.form-control:focus {
    background: var(--input-bg);
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.2),
        0 6px 12px -2px rgba(102, 126, 234, 0.15);
    color: var(--text-primary);
    outline: none;
    transform: translateY(-1px);
}

/* Campos disabled/readonly - melhor contraste */
.form-control:disabled,
.form-control[disabled],
.form-control[readonly],
input:disabled,
input[disabled],
input[readonly] {
    background: rgba(30, 33, 41, 0.6) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    opacity: 0.8 !important;
    cursor: not-allowed;
}

.form-control:disabled::placeholder,
.form-control[disabled]::placeholder,
.form-control[readonly]::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.6 !important;
}

.form-control::placeholder {
    color: transparent;
    opacity: 0;
    font-weight: 400;
}

.border-lable-flt {
    position: relative;
    display: block;
    margin-bottom: 1.75rem;
}

.border-lable-flt label {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.3px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    background: transparent;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* Remover qualquer estilo ::after que possa cortar o label */
.border-lable-flt label::after,
.border-lable-flt label::before,
.border-lable-flt > span::after {
    display: none !important;
    content: none !important;
    background: none !important;
    height: 0 !important;
    width: 0 !important;
}

.border-lable-flt .form-control::placeholder,
.border-lable-flt input::placeholder {
    color: transparent;
    opacity: 0;
}

/* Quando o input tem foco OU tem valor, o label sobe */
.border-lable-flt input:focus ~ label,
.border-lable-flt input:not(:placeholder-shown) ~ label,
.border-lable-flt .form-control:focus ~ label,
.border-lable-flt .form-control:not(:placeholder-shown) ~ label,
.border-lable-flt input.has-value ~ label,
.border-lable-flt .form-control.has-value ~ label {
    top: -0.5rem;
    left: 1.25rem;
    transform: translateY(0) scale(0.85);
    font-size: 0.8125rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(30, 33, 41, 0.95);
    padding: 0 0.5rem;
    border-radius: 4px;
}

/* Ajustar padding do input quando tem foco ou valor */
.border-lable-flt input:focus,
.border-lable-flt input:not(:placeholder-shown),
.border-lable-flt input.has-value,
.border-lable-flt .form-control:focus,
.border-lable-flt .form-control:not(:placeholder-shown),
.border-lable-flt .form-control.has-value {
    padding-top: 1.5rem;
    padding-bottom: 0.75rem;
}

.btn.gam1ng {
    background: var(--gradient-primary);
    border: none;
    border-radius: 14px;
    padding: 1.125rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 12px -2px rgba(102, 126, 234, 0.4),
        0 3px 6px -1px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 0.5rem;
}

.btn.gam1ng::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn.gam1ng:hover::before {
    left: 100%;
}

.btn.gam1ng:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 20px -4px rgba(102, 126, 234, 0.5),
        0 6px 10px -2px rgba(102, 126, 234, 0.4);
    background: var(--gradient-primary);
}

.btn.gam1ng:active {
    transform: translateY(-1px);
}

/* ============================================
   HEADER/NAVBAR MODERNO
   ============================================ */

.logo-header {
    position: relative;
}

.menu-abrir {
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.625rem 0.875rem;
    background: rgba(30, 33, 41, 0.9);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    z-index: 10;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.menu-abrir:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   TABELAS MODERNAS
   ============================================ */

.table {
    background: rgba(30, 33, 41, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table thead {
    background: var(--gradient-dark);
}

.table thead th {
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.table tbody td {
    color: var(--text-secondary);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   FOOTER MODERNO FIXO NO FINAL DA PÁGINA
   ============================================ */

/* Estilo para o wrapper - sidebar e content lado a lado */
#wrapper {
    display: flex;
    flex-direction: row; /* Sidebar e content lado a lado */
    min-height: calc(100vh - 150px);
    position: relative;
}

/* Garantir que o footer ocupe toda a largura e fique abaixo do conteúdo */
footer {
    position: relative !important;
    width: 100% !important;
    clear: both !important;
    display: block !important;
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: rgba(30, 33, 41, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    z-index: 1;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

footer p {
    margin-bottom: 1rem;
    font-weight: 500;
}

footer .social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

footer .social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

footer .social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

footer .social a img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ============================================
   ALERTAS MODERNOS
   ============================================ */

.alerta {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.alerta.sucesso {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #6ee7b7;
}

.alerta.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

.alerta.infor {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #93c5fd;
}

/* ============================================
   PÁGINA DE DOAÇÕES - AJUSTES DE CORES
   ============================================ */

/* Sobrescrever textos pretos na página de doações - Estilos gerais */
/* Seletor específico para elementos com style inline preto */
.content [style*="color: #000000"],
.content [style*="color:#000000"],
.content [style*="color: #000"],
.content [style*="color:#000"],
.content [style*="color: black"],
.content [style*="color:black"],
.content [style*="color: black !important"],
.content [style*="color:black !important"] {
    color: var(--text-primary) !important;
}

/* Sobrescrever estilos do css/estilo.css para .pagina-donate */
.pagina-donate {
    color: var(--text-primary) !important;
}

.pagina-donate h1 {
    color: var(--text-primary) !important;
}

.pagina-donate,
.pagina-donate *:not(script):not(style) {
    color: var(--text-primary) !important;
}

.pagina-donate h1,
.pagina-donate h2,
.pagina-donate h3,
.pagina-donate h4,
.pagina-donate h5,
.content h1,
.content h2,
.content h3,
.content h4,
.content h5 {
    color: var(--text-primary) !important;
}

/* Inputs e campos de formulário */
.pagina-donate input,
.pagina-donate .form-control,
.pagina-donate .input-group-text,
.content .input-group-text,
.content input[style*="color: #000000"],
.content input[style*="color:#000000"],
.content input[style*="color: black"],
.content input[style*="color:black"] {
    color: var(--text-primary) !important;
    background: rgba(15, 23, 42, 0.7) !important;
    border-color: var(--border-color) !important;
}

.content span[style*="color: #000000"],
.content span[style*="color:#000000"],
.content span[style*="color: black"],
.content span[style*="color:black"],
.content .input-group-text[style*="color: #000000"],
.content .input-group-text[style*="color:#000000"] {
    color: var(--text-primary) !important;
}

/* Textos com color: black !important - Seletor mais específico */
.content small[style*="color: black"],
.content small[style*="color:black"],
.content small[style*="color: black !important"],
.content small[style*="color:black !important"],
.content .form-text[style*="color: black"],
.content .form-text[style*="color:black"],
.content .form-text[style*="color: black !important"],
.content .form-text[style*="color:black !important"],
.content *[style*="color: black !important"],
.content *[style*="color:black !important"],
.content small#senha[style*="color: black"],
.content small#senha[style*="color:black"],
.content small#senha[style*="color: black !important"],
.content small#senha[style*="color:black !important"],
.content small#senha.form-text[style*="color: black !important"],
.content small#senha.form-text[style*="color:black !important"] {
    color: var(--text-primary) !important;
}

/* Sobrescrever especificamente textos com id="senha" - Forçar com alta especificidade */
.content small#senha,
small#senha,
small#senha.form-text,
small#senha.form-text.text-muted,
.content small#senha.form-text,
.content small#senha.form-text.text-muted {
    color: var(--text-primary) !important;
}

/* Forçar cor branca em todos os small e form-text dentro de .content */
.content small,
.content .form-text,
.content small.form-text,
.content small.text-muted,
.content .form-text.text-muted {
    color: var(--text-primary) !important;
}

/* Seletor ainda mais específico para garantir sobrescrita - Múltiplas variações */
body .content small#senha.form-text.text-muted[style*="color: black"],
body .content small#senha.form-text.text-muted[style*="color:black"],
body .content small#senha.form-text.text-muted[style*="color: black !important"],
body .content small#senha.form-text.text-muted[style*="color:black !important"],
.content small#senha.form-text.text-muted[style*="color: black !important"],
.content small#senha.form-text.text-muted[style*="color:black !important"],
small#senha.form-text.text-muted[style*="color: black !important"],
small#senha.form-text.text-muted[style*="color:black !important"] {
    color: var(--text-primary) !important;
}

/* Forçar em todos os elementos small#senha independente do estilo inline */
small#senha,
small#senha.form-text,
small#senha.text-muted,
small#senha.form-text.text-muted {
    color: var(--text-primary) !important;
}

/* Também para small#real */
small#real,
small#real.form-text,
small#real.text-muted,
small#real.form-text.text-muted,
small#real[style*="color: black !important"],
small#real[style*="color:black !important"] {
    color: var(--text-primary) !important;
}

/* Cards de doação */
#doacoes_card,
#comissao_card,
.card[id*="card"],
.content .card {
    background: rgba(30, 33, 41, 0.8) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

#txt_card,
#sub_card,
#total_card {
    color: var(--text-primary) !important;
}

#sub_card {
    color: var(--text-muted) !important;
}

#total_card {
    color: var(--text-primary) !important;
    font-weight: 700;
}

/* Labels e textos gerais */
.content label,
.pagina-donate label,
.pagina-donate .label {
    color: var(--text-primary) !important;
}

/* Tabelas na página de doações */
.content table,
.content table td,
.content table th,
.pagina-donate table,
.pagina-donate table td,
.pagina-donate table th {
    color: var(--text-primary) !important;
}

.content table thead th,
.pagina-donate table thead th {
    background: var(--dark-card) !important;
    color: var(--text-primary) !important;
}

.content table tbody td,
.pagina-donate table tbody td {
    color: var(--text-secondary) !important;
}

/* ============================================
   MODAL BOOTSTRAP - TEMA ESCURO
   ============================================ */

/* Garantir que o modal tenha z-index alto e funcione corretamente */
.modal {
    z-index: 1050 !important;
    position: fixed !important;
}

.modal-backdrop {
    z-index: 1040 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

.modal-backdrop.show {
    opacity: 0.5 !important;
}

.modal-dialog {
    z-index: 1055 !important;
    pointer-events: auto !important;
}

.modal-content {
    background: rgba(30, 33, 41, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.modal-header .close {
    color: var(--text-primary) !important;
    opacity: 0.8 !important;
    text-shadow: none !important;
}

.modal-header .close:hover {
    opacity: 1 !important;
    color: var(--text-primary) !important;
}

.modal-title {
    color: var(--text-primary) !important;
}

.modal-body {
    color: var(--text-primary) !important;
}

.modal-body h1,
.modal-body p,
.modal-body b,
.modal-body font,
.modal-body *:not(script):not(style) {
    color: var(--text-primary) !important;
}

.modal-body font[color="black"],
.modal-body b[style*="color: black"],
.modal-body *[style*="color: black"] {
    color: var(--text-primary) !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
}

/* Garantir que elementos dentro do modal sejam clicáveis */
.modal-content * {
    pointer-events: auto !important;
}

/* Prevenir que containers pais bloqueiem o modal */
.content-box .modal,
.content .modal {
    position: fixed !important;
    z-index: 1050 !important;
}

/* Meta de doação e outros elementos específicos */
.meta_doacao,
.content .meta_doacao {
    color: var(--text-primary) !important;
}

.content center,
.content center * {
    color: var(--text-primary) !important;
}

/* ============================================
   DATATABLES - AJUSTES PARA TEMA ESCURO
   ============================================ */

/* Campo de seleção de registros por página */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_length label select {
    background: rgba(30, 33, 41, 0.9) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-family: 'Inter', sans-serif !important;
}

.dataTables_wrapper .dataTables_length select option {
    background: rgba(30, 33, 41, 0.95) !important;
    color: var(--text-primary) !important;
    padding: 0.5rem !important;
}

.dataTables_wrapper .dataTables_length label {
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Campo de busca/filtro */
.dataTables_wrapper .dataTables_filter input {
    background: rgba(30, 33, 41, 0.9) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-family: 'Inter', sans-serif !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.dataTables_wrapper .dataTables_filter label {
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Informações da tabela */
.dataTables_wrapper .dataTables_info {
    color: var(--text-secondary) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Paginação */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-primary) !important;
    background: rgba(30, 33, 41, 0.7) !important;
    border-color: var(--border-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: rgba(30, 33, 41, 0.3) !important;
    color: var(--text-muted) !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ============================================
   RADIO-TILE - SELECÇÃO DE PERSONAGEM
   ============================================ */

/* Radio-tile padrão (não selecionado) */
.radio-tile-group .input-container .radio-tile {
    background: rgba(30, 33, 41, 0.7) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

.radio-tile-group .input-container .radio-tile-label {
    color: var(--text-primary) !important;
}

/* Radio-tile quando selecionado (checked) */
.radio-tile-group .input-container .radio-button:checked + .radio-tile {
    background: rgba(99, 102, 241, 0.3) !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.radio-tile-group .input-container .radio-button:checked + .radio-tile .radio-tile-label {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

/* Hover no radio-tile */
.radio-tile-group .input-container .radio-tile:hover {
    background: rgba(30, 33, 41, 0.9) !important;
    border-color: var(--primary-light) !important;
}

.radio-tile-group .input-container .radio-button:hover + .radio-tile {
    background: rgba(30, 33, 41, 0.9) !important;
    border-color: var(--primary-light) !important;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    body:not(:has(.sidebar)) .logo-container img {
        max-width: 220px;
    }
    
    .perfectworld {
        padding: 2.5rem 1.5rem !important;
        margin-top: 1rem !important;
        margin-left: 1rem;
        margin-right: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .content-box {
        padding: 1.5rem;
    }
    
    .card-box {
        padding: 1.5rem;
    }
    
    .sidebar-dark .cp {
        margin: 0.75rem;
        padding: 1rem;
    }
    
    .sidebar-dark .cp center {
        flex-direction: column;
    }
    
    .sidebar-dark .mini-btn {
        width: 100%;
        max-width: 100%;
        margin: 0.25rem 0;
    }
    
    .logo-header {
        padding: 1.25rem !important;
    }
    
    .menu-abrir {
        top: 1rem !important;
        right: 1rem !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 1.125rem !important;
    }
    
    .logo-header img {
        max-width: 180px !important;
    }
}

/* ============================================
   REGRA FINAL - MÁXIMA ESPECIFICIDADE
   Para sobrescrever estilos inline com !important
   ============================================ */
html body .content small#senha.form-text.text-muted[style*="color"],
html body .content small#real.form-text.text-muted[style*="color"],
html body .content small.form-text.text-muted[style*="color: black"],
html body .content small.form-text.text-muted[style*="color:black"],
html body .content small.form-text.text-muted[style*="color: black !important"],
html body .content small.form-text.text-muted[style*="color:black !important"] {
    color: var(--text-primary) !important;
}

/* ============================================
   LOGO NA PÁGINA DE ENTRADA
   ============================================ */

.entrada-logo,
.container img[src*="logo.png"] {
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.4));
    transition: all 0.3s ease;
}

.entrada-logo:hover,
.container img[src*="logo.png"]:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(99, 102, 241, 0.6));
}

/* ============================================
   SCROLLBAR MODERNO
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ============================================
   SWEET ALERT 2 - TEMA ESCURO
   ============================================ */

/* Container principal do Sweet Alert */
.swal2-container {
    backdrop-filter: blur(5px);
}

/* Popup do Sweet Alert */
.swal2-popup {
    background: rgba(30, 30, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
    color: var(--text-primary) !important;
}

/* Título do Sweet Alert */
.swal2-title {
    color: var(--text-primary) !important;
}

/* Conteúdo HTML do Sweet Alert */
.swal2-html-container {
    color: var(--text-primary) !important;
}

/* Footer do Sweet Alert */
.swal2-footer {
    color: var(--text-secondary) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.swal2-footer a {
    color: var(--primary-color) !important;
}

/* Botões do Sweet Alert */
.swal2-actions {
    gap: 0.5rem;
}

.swal2-confirm,
.swal2-deny,
.swal2-cancel {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.625rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover,
.swal2-deny:hover,
.swal2-cancel:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.swal2-cancel {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
    border: 1px solid #ef4444 !important;
}

.swal2-cancel:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
}

/* Inputs do Sweet Alert */
.swal2-input,
.swal2-textarea,
.swal2-select,
.swal2-file {
    background: rgba(20, 20, 30, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    padding: 0.75rem 1rem !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus,
.swal2-file:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
    outline: none !important;
}

.swal2-input::placeholder,
.swal2-textarea::placeholder {
    color: var(--text-secondary) !important;
}

/* Labels dos inputs */
.swal2-label {
    color: var(--text-primary) !important;
}

/* Mensagem de validação */
.swal2-validation-message {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
    border: 1px solid #ef4444 !important;
    border-radius: 8px !important;
}

/* Ícones do Sweet Alert */
.swal2-icon {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.swal2-icon.swal2-success {
    border-color: #10b981 !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: #10b981 !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #ef4444 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #fbbf24 !important;
}

.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #60a5fa !important;
}

.swal2-icon.swal2-question {
    border-color: #8b5cf6 !important;
    color: #a78bfa !important;
}

/* Backdrop */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(3px) !important;
}

/* Botão de fechar */
.swal2-close {
    color: var(--text-primary) !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.swal2-close:hover {
    color: var(--primary-color) !important;
    transform: rotate(90deg);
}

/* Progress steps */
.swal2-progress-steps {
    background: rgba(20, 20, 30, 0.8) !important;
}

.swal2-progress-step {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

.swal2-progress-step.swal2-active-progress-step {
    background: var(--primary-dark) !important;
}

.swal2-progress-step-line {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Timer progress bar */
.swal2-timer-progress-bar-container {
    background: rgba(255, 255, 255, 0.1) !important;
}

.swal2-timer-progress-bar {
    background: var(--primary-color) !important;
}

/* Toast */
.swal2-toast {
    background: rgba(30, 30, 40, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

.swal2-toast .swal2-title {
    color: var(--text-primary) !important;
}

.swal2-toast .swal2-html-container {
    color: var(--text-primary) !important;
}

/* Loader */
.swal2-loader {
    border-color: var(--primary-color) transparent var(--primary-color) transparent !important;
}

