/* Themes Definition */

/* 1. Default (Dark Gold) - Uses existing variables */
[data-theme="standard"] {
    --poker-gold: #c5a059;
    --poker-black: #0f1115;
    --poker-bg: #0f1115;
    --poker-card-bg: rgba(22, 25, 32, 0.6);
    --poker-text: #e0e0e0;
    --poker-secondary: #6c757d;
    --poker-menu-text: #d1d5db;
    /* High contrast gray for menu */
}

/* 2. Light Mode */
/* 2. Light Mode (Windows 11 Style / Fluent) */
[data-theme="light"] {
    /* Cores Principais */
    --poker-gold: #0078d4;
    /* Windows 11 Accent Blue */
    --poker-black: #ffffff;
    /* Sidebar/Headers agora são brancos puros */
    --poker-bg: #f3f3f3;
    /* Fundo Mica (cinza claro) para contraste com cards */
    --poker-card-bg: #ffffff;
    /* Cards brancos */
    --poker-text: #202020;
    /* Texto quase preto (mais suave que #000) */
    --poker-SECONDARY: #5d6778;
    /* Texto secundário */
    --poker-menu-text: #1f2937;
    /* Dark gray for light mode menu */

    /* Variáveis Bootstrap para garantir consistência */
    --bs-body-bg: #f3f3f3;
    --bs-body-color: #202020;
    --bs-primary: #0078d4;
    --bs-card-bg: #ffffff;
}

/* Ajuste Específico para Light Mode: Sombras e Bordas */
[data-theme="light"] .glass-card {
    background: var(--poker-card-bg) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    /* Borda sutil */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Sombra suave estilo Win11 */
    border-radius: 8px;
    /* Win11 usa cantos arredondados */
}

/* Sidebar no Light Mode precisa de uma separação visual já que é branca também */
[data-theme="light"] .sidebar {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* 3. Blue Night */
[data-theme="blue"] {
    --poker-gold: #00d2ff;
    /* Cyan instead of Gold */
    --poker-black: #050b14;
    /* Deep blueish black */
    --poker-bg: #050b14;
    --poker-card-bg: rgba(10, 25, 45, 0.7);
    --poker-text: #e0f0ff;
    --poker-secondary: #4a90e2;
    --poker-menu-text: #dbeafe;
    /* Very light blue */
}

/* 4. Red Velvet */
[data-theme="red"] {
    --poker-gold: #ff4d4d;
    /* Red instead of Gold */
    --poker-black: #1a0505;
    /* Reddish black */
    --poker-bg: #1a0505;
    --poker-card-bg: rgba(40, 5, 5, 0.7);
    --poker-text: #ffe0e0;
    --poker-secondary: #ff8080;
    --poker-menu-text: #fee2e2;
    /* Very light red */
}

/* 5. Pastel Lilac */
[data-theme="pastel-lilac"] {
    --poker-gold: #b39ddb;
    /* Soft Purple key color */
    --poker-black: #f3e5f5;
    /* Very Light Purple bg */
    --poker-bg: #f3e5f5;
    --poker-card-bg: #ffffff;
    --poker-text: #4a148c;
    /* Dark Purple Text */
    --poker-secondary: #7e57c2;
    --poker-menu-text: #5e35b1;
    /* Darker purple for menu text */
}

/* 6. Mint Breeze */
[data-theme="pastel-mint"] {
    --poker-gold: #80cbc4;
    /* Soft Teal key color */
    --poker-black: #e0f2f1;
    /* Very Light Teal bg */
    --poker-bg: #e0f2f1;
    --poker-card-bg: #ffffff;
    --poker-text: #004d40;
    /* Dark Teal Text */
    --poker-secondary: #26a69a;
    --poker-menu-text: #00695c;
    /* Darker teal for menu text */
}



/* Efeito extra para o Cyberpunk */


/* General Overrides based on Theme Variables */
body {
    background-color: var(--poker-bg) !important;
    color: var(--poker-text) !important;
}

/* Update Glass Cards to use variables */
.glass-card {
    background: var(--poker-card-bg) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.text-gold {
    color: var(--poker-gold) !important;
}

.btn-gold {
    background-color: var(--poker-gold) !important;
    color: var(--poker-bg) !important;
    /* Text contrast */
}

/* Navigation Overrides */
.sidebar,
.top-header {
    background: var(--poker-black) !important;
}

/* Background Overrides */
.bg-dark,
.bg-black {
    background-color: var(--poker-black) !important;
    color: var(--poker-text) !important;
}

/* Text Overrides */
.text-white {
    color: var(--poker-text) !important;
}

/* Bootstrap Utility Overrides for Strict Theme Compliance */
.text-muted {
    color: var(--poker-secondary) !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Light mode specific border fix */
[data-theme="light"] .border-secondary,
[data-theme="pastel-lilac"] .border-secondary,
[data-theme="pastel-mint"] .border-secondary {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.form-control,
.form-select {
    background-color: var(--poker-black) !important;
    color: var(--poker-text) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--poker-black) !important;
    color: var(--poker-text) !important;
    border-color: var(--poker-gold) !important;
    box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25);
    /* Simplification */
}

/* Light Mode Input Overrides */
[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background-color: #FFFFFF !important;
    border-color: #E0E0E0 !important;
    color: #000000 !important;
}

/* --- CORREÇÕES GLOBAIS BOOTSTRAP --- */

/* Forçar Modais a seguirem o tema */
.modal-content {
    background-color: var(--poker-card-bg);
    color: var(--poker-text);
    border: 1px solid var(--poker-secondary);
}

.modal-header,
.modal-footer {
    border-color: rgba(128, 128, 128, 0.2);
}

/* Forçar Tabelas a serem transparentes ou seguirem o tema */
.table {
    --bs-table-color: var(--poker-text);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(128, 128, 128, 0.2);
    color: var(--poker-text) !important;
}

/* Garantir que linhas da tabela tenham hover visível em qualquer tema */
.table-hover>tbody>tr:hover>* {
    --bs-table-accent-bg: rgba(var(--poker-gold), 0.1);
    /* Precisa converter hex para rgb se usar opacidade aqui, ou usar uma cor fixa transparente */
    background-color: rgba(128, 128, 128, 0.1) !important;
    color: var(--poker-text) !important;
}

/* Dropdowns do Bootstrap */
.dropdown-menu {
    background-color: var(--poker-card-bg);
    color: var(--poker-text);
    border: 1px solid var(--poker-secondary);
}

.dropdown-item {
    color: var(--poker-text);
}

.dropdown-item:hover {
    background-color: var(--poker-black);
    color: var(--poker-gold);
}

/* Custom Utilities for Console */
.console-header {
    min-height: 80px;
}