/* 
 * CCB ADMINISTRADOR - SISTEMA DE TEMAS
 * Arquivo global para temas Light/Dark - CORRIGIDO PARA LIGHT NATURAL
 */

:root {
    /* Light Theme Natural - Cores da CCB */
    --primary-color: #0d2d5c; /* Azul escuro da CCB */
    --secondary-color: #1e73be; /* Azul médio da CCB */
    --accent-color: #3498db; /* Azul claro para destaques */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    /* Backgrounds Light Natural */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-body: #f5f7fa;
    
    /* Text Colors Natural */
    --text-primary: #2d3748; /* Texto escuro natural */
    --text-secondary: #4a5568; /* Texto secundário */
    --text-muted: #718096; /* Texto esmaecido */
    --text-inverse: #ffffff;
    
    /* Borders Natural */
    --border-color: #e2e8f0;
    --border-light: #f7fafc;
    --border-dark: #cbd5e0;
    
    /* Shadows Natural */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Gradients Natural */
    --gradient-primary: linear-gradient(135deg, #0d2d5c, #1e73be);
    --gradient-accent: linear-gradient(135deg, #3498db, #2980b9);
    --gradient-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* REMOVER COMPLETAMENTE O TEMA ESCURO */
/* [data-theme="dark"] - REMOVIDO PARA EVITAR CONFLITOS */

/* GLOBAL THEME STYLES - LIGHT NATURAL APENAS */
body {
    background: var(--bg-body);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cards com cores naturais */
.card, .settings-card, .stats-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

/* Forms com cores naturais */
.form-control, .form-select, .form-check-input {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Tables com cores naturais */
.table {
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.table th {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    font-weight: 600;
}

.table td {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: var(--bg-secondary);
}

/* Buttons com cores da CCB */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #092548;
    border-color: #07203d;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #1a65a9;
    border-color: #175c99;
}

/* Modals com cores naturais */
.modal-content {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: 1px solid var(--border-color);
}

.modal-header.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.modal-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Navigation com cores naturais */
.navbar {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Breadcrumbs com cores naturais */
.breadcrumb {
    background-color: var(--bg-secondary);
}

.breadcrumb-item a {
    color: var(--accent-color);
}

/* Títulos e textos com cores naturais */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

.text-white {
    color: white !important;
}

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

/* Corrigir títulos esbranquiçados específicos */
.control-title-compact,
.visits-title-compact,
.section-header h2,
.section-header h3,
.module-header h1,
.page-title {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.alert-success {
    background-color: rgba(var(--success-color), 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(var(--warning-color), 0.1);
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(var(--danger-color), 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-info {
    background-color: rgba(var(--info-color), 0.1);
    border-color: var(--info-color);
    color: var(--info-color);
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

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

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var(--gradient-primary);
    color: var(--text-inverse);
}

.sidebar {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.sidebar-item {
    color: var(--text-secondary);
}

.sidebar-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "☀️";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

input:checked + .slider {
    background-color: var(--accent-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
    content: "🌙";
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive Dark Mode */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 28px;
    }
    
    .slider:before {
        height: 20px;
        width: 20px;
        font-size: 10px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Print Styles */
@media print {
    [data-theme="dark"] {
        --bg-primary: #ffffff;
        --bg-secondary: #f8f9fa;
        --text-primary: #000000;
        --text-secondary: #6c757d;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-primary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-primary: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom Components */
.main-header {
    background: var

/* --- CRM CANONICAL PALETTE (synchronized) --- */
@tailwind base;
@tailwind components;
@tailwind utilities;

html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

:root,
[data-theme="dark"] {
  --color-bg-primary: #0f172a;
  --color-bg-secondary: #1e293b;
  --color-bg-tertiary: #334155;
  --color-bg-quaternary: #1e293b;
  --color-border: #334155;
  --color-text-primary: #e2e8f0;
  --color-text-secondary: #94a3b8;
  --color-accent: #2dd4bf;
  --color-accent-hover: #14b8a6;
  --color-purple: #8b5cf6;
  --color-blue: #3b82f6;
  --color-blue-hover: #2563eb;
}

[data-theme="light"] {
  --color-bg-primary: #f1f5f9;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #f8fafc;
  --color-bg-quaternary: #ffffff;
  --color-border: #e2e8f0;
  --color-text-primary: #0f172a;
  --color-text-secondary: #64748b;
  --color-accent: #0d9488;
  --color-accent-hover: #115e59;
  --color-purple: #7c3aed;
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
}

[data-theme="dark-blue"] {
  --color-bg-primary: #0b1120;
  --color-bg-secondary: #121c33;
  --color-bg-tertiary: #23314e;
  --color-bg-quaternary: #1a253c;
  --color-border: #23314e;
  --color-text-primary: #dde4f1;
  --color-text-secondary: #8c9bb6;
  --color-accent: #4ade80;
  --color-accent-hover: #22c55e;
  --color-purple: #a78bfa;
  --color-blue: #60a5fa;
  --color-blue-hover: #3b82f6;
}

[data-theme="dark-gray"] {
  --color-bg-primary: #111827;
  --color-bg-secondary: #1f2937;
  --color-bg-tertiary: #374151;
  --color-bg-quaternary: #2b3546;
  --color-border: #374151;
  --color-text-primary: #f3f4f6;
  --color-text-secondary: #9ca3af;
  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-purple: #c084fc;
  --color-blue: #93c5fd;
  --color-blue-hover: #60a5fa;
}

[data-theme="dark-green"] {
  --color-bg-primary: #042f2e;
  --color-bg-secondary: #064e47;
  --color-bg-tertiary: #065f46;
  --color-bg-quaternary: #053b34;
  --color-border: #065f46;
  --color-text-primary: #ecfdf5;
  --color-text-secondary: #a7f3d0;
  --color-accent: #6ee7b7;
  --color-accent-hover: #34d399;
  --color-purple: #a5b4fc;
  --color-blue: #7dd3fc;
  --color-blue-hover: #38bdf8;
}

[data-theme="dark-yellow"] {
  --color-bg-primary: #2a210c;
  --color-bg-secondary: #423514;
  --color-bg-tertiary: #5f4c1e;
  --color-bg-quaternary: #392e13;
  --color-border: #5f4c1e;
  --color-text-primary: #fefce8;
  --color-text-secondary: #fde047;
  --color-accent: #facc15;
  --color-accent-hover: #eab308;
  --color-purple: #d8b4fe;
  --color-blue: #bfdbfe;
  --color-blue-hover: #93c5fd;
}

[data-theme="dark-super"] {
  --color-bg-primary: #000000;
  --color-bg-secondary: #111111;
  --color-bg-tertiary: #222222;
  --color-bg-quaternary: #1a1a1a;
  --color-border: #222222;
  --color-text-primary: #eeeeee;
  --color-text-secondary: #aaaaaa;
  --color-accent: #fafafa;
  --color-accent-hover: #e5e5e5;
  --color-purple: #d8b4fe;
  --color-blue: #bfdbfe;
  --color-blue-hover: #93c5fd;
}

[data-theme="light-blue"] {
  --color-bg-primary: #eff6ff;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #dbeafe;
  --color-bg-quaternary: #e0e9f7;
  --color-border: #dbeafe;
  --color-text-primary: #1e3a8a;
  --color-text-secondary: #3b82f6;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-purple: #9333ea;
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
}

[data-theme="light-gray"] {
  --color-bg-primary: #f3f4f6;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #e5e7eb;
  --color-bg-quaternary: #dde0e3;
  --color-border: #e5e7eb;
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-accent: #4f46e5;
  --color-accent-hover: #4338ca;
  --color-purple: #8b5cf6;
  --color-blue: #3b82f6;
  --color-blue-hover: #2563eb;
}

[data-theme="light-green"] {
  --color-bg-primary: #f0fdf4;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #dcfce7;
  --color-bg-quaternary: #e2f2e7;
  --color-border: #dcfce7;
  --color-text-primary: #14532d;
  --color-text-secondary: #16a34a;
  --color-accent: #22c55e;
  --color-accent-hover: #16a34a;
  --color-purple: #a855f7;
  --color-blue: #0ea5e9;
  --color-blue-hover: #0284c7;
}

[data-theme="light-yellow"] {
  --color-bg-primary: #fefce8;
  --color-bg-secondary: #ffffff;
  --color-bg-tertiary: #fef08a;
  --color-bg-quaternary: #fbf5bc;
  --color-border: #fef08a;
  --color-text-primary: #713f12;
  --color-text-secondary: #a16207;
  --color-accent: #eab308;
  --color-accent-hover: #ca8a04;
  --color-purple: #c026d3;
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
}

[data-theme="light-super"] {
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;
  --color-bg-quaternary: #f0f1f2;
  --color-border: #f3f4f6;
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-accent: #1f2937;
  --color-accent-hover: #000000;
  --color-purple: #7c3aed;
  --color-blue: #2563eb;
  --color-blue-hover: #1d4ed8;
}

[data-theme="slyweb-dark"] {
  --color-bg-primary: #111827;
  --color-bg-secondary: #1f2937;
  --color-bg-tertiary: #374151;
  --color-bg-quaternary: #1f2937;
  --color-border: #374151;
  --color-text-primary: #f3f4f6;
  --color-text-secondary: #9ca3af;
  --color-accent: #2dd4bf;
  --color-accent-hover: #14b8a6;
  --color-purple: #8b5cf6;
  --color-blue: #3b82f6;
  --color-blue-hover: #2563eb;
}

.ai-assistant-config-page {
  color-scheme: dark;
}

.ai-assistant-config-page input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
.ai-assistant-config-page textarea,
.ai-assistant-config-page select {
  background-color: var(--color-bg-primary) !important;
  color: var(--color-text-primary) !important;
  border-color: var(--color-border) !important;
  -webkit-text-fill-color: var(--color-text-primary);
  caret-color: var(--color-blue);
}

.ai-assistant-config-page input::placeholder,
.ai-assistant-config-page textarea::placeholder {
  color: color-mix(in srgb, var(--color-text-secondary) 72%, transparent);
  -webkit-text-fill-color: color-mix(in srgb, var(--color-text-secondary) 72%, transparent);
}

.ai-assistant-config-page input[readonly],
.ai-assistant-config-page textarea[readonly],
.ai-assistant-config-page select[disabled] {
  background-color: var(--color-bg-quaternary) !important;
}

.ai-assistant-config-page option {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/*
 * Native selects on mobile/WebKit can ignore Tailwind dark backgrounds and
 * render with a white field. Force dark themed chrome for brand-styled selects.
 */
select[class*="bg-brand-"] {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  -webkit-text-fill-color: var(--color-text-primary);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%),
    linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

select[class*="bg-brand-"]:disabled {
  opacity: 0.7;
}

select[class*="bg-brand-"] option,
select[class*="bg-brand-"] optgroup {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
}

/* UI Scaling System */
:root {
  --ui-scale-multiplier: 1;
}

[data-ui-scale="1"] { --ui-scale-multiplier: 1; }
[data-ui-scale="2"] { --ui-scale-multiplier: 1.15; }
[data-ui-scale="3"] { --ui-scale-multiplier: 1.3; }
[data-ui-scale="4"] { --ui-scale-multiplier: 1.5; }

html {
  font-size: calc(16px * var(--ui-scale-multiplier));
}

/* Ajustes específicos para manter consistência em elementos pequenos */
[data-ui-scale] .text-\[10px\] { font-size: calc(10px * var(--ui-scale-multiplier)); line-height: 1.2; }
[data-ui-scale] .text-xs { font-size: calc(12px * var(--ui-scale-multiplier)); line-height: 1.25; }
[data-ui-scale] .text-sm { font-size: calc(14px * var(--ui-scale-multiplier)); line-height: 1.3; }
[data-ui-scale] .text-base { font-size: calc(16px * var(--ui-scale-multiplier)); line-height: 1.5; }
[data-ui-scale] .text-lg { font-size: calc(18px * var(--ui-scale-multiplier)); line-height: 1.6; }
[data-ui-scale] .text-xl { font-size: calc(20px * var(--ui-scale-multiplier)); line-height: 1.7; }
[data-ui-scale] .text-2xl { font-size: calc(24px * var(--ui-scale-multiplier)); line-height: 1.8; }

/* Injetar escala em paddings e margins selecionados para não quebrar o layout */
[data-ui-scale] .p-4 { padding: calc(1rem * var(--ui-scale-multiplier)); }
[data-ui-scale] .p-8 { padding: calc(2rem * var(--ui-scale-multiplier)); }
[data-ui-scale] .gap-4 { gap: calc(1rem * var(--ui-scale-multiplier)); }
[data-ui-scale] .space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: calc(1rem * var(--ui-scale-multiplier)); }

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.loading-spinner {
  border: 4px solid var(--color-border);
  border-top: 4px solid var(--color-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* --- CCB CRM COMPATIBILITY BRIDGE --- */
/* Maps exact CRM tokens to legacy CCB tokens. data-theme selectors override page-local :root values. */
:root[data-theme="slyweb-dark"] { --color-bg-primary:#111827;--color-bg-secondary:#1f2937;--color-bg-tertiary:#374151;--color-bg-quaternary:#1f2937;--color-border:#374151;--color-text-primary:#f3f4f6;--color-text-secondary:#9ca3af;--color-accent:#2dd4bf;--color-accent-hover:#14b8a6;--color-purple:#8b5cf6;--color-blue:#3b82f6;--color-blue-hover:#2563eb; }
:root[data-theme] { --primary-color:var(--color-bg-secondary);--secondary-color:var(--color-bg-tertiary);--accent-color:var(--color-accent);--hover-color:var(--color-accent-hover);--bg-primary:var(--color-bg-secondary);--bg-secondary:var(--color-bg-tertiary);--bg-tertiary:var(--color-bg-quaternary);--bg-body:var(--color-bg-primary);--text-primary:var(--color-text-primary);--text-secondary:var(--color-text-secondary);--text-muted:var(--color-text-secondary);--text-dark:var(--color-text-primary);--text-light:var(--color-text-primary);--text-inverse:var(--color-bg-primary);--border-color:var(--color-border);--border-light:var(--color-border);--border-dark:var(--color-border);--card-bg:var(--color-bg-secondary);--gradient-primary:linear-gradient(135deg,var(--color-bg-secondary),var(--color-bg-tertiary));--gradient-accent:linear-gradient(135deg,var(--color-accent),var(--color-accent-hover));--gradient-bg:linear-gradient(135deg,var(--color-bg-primary),var(--color-bg-secondary)); }
html[data-theme] body { background:var(--color-bg-primary)!important;color:var(--color-text-primary)!important; }
html[data-theme] .card,html[data-theme] .settings-card,html[data-theme] .stats-card,html[data-theme] .modal-content { background-color:var(--color-bg-secondary)!important;color:var(--color-text-primary)!important;border-color:var(--color-border)!important; }
html[data-theme] .card-header,html[data-theme] .modal-footer,html[data-theme] .table th { background-color:var(--color-bg-tertiary)!important;color:var(--color-text-primary)!important;border-color:var(--color-border)!important; }
html[data-theme] .table,html[data-theme] .table td,html[data-theme] .form-control,html[data-theme] .form-select { background-color:var(--color-bg-secondary)!important;color:var(--color-text-primary)!important;border-color:var(--color-border)!important; }
html[data-theme] .form-control:focus,html[data-theme] .form-select:focus { border-color:var(--color-accent)!important;box-shadow:0 0 0 .2rem color-mix(in srgb,var(--color-accent) 25%,transparent)!important; }
html[data-theme] .btn-primary { background:var(--color-accent)!important;border-color:var(--color-accent)!important;color:#fff!important; }
html[data-theme] .btn-primary:hover { background:var(--color-accent-hover)!important;border-color:var(--color-accent-hover)!important; }
.ccb-theme-picker{position:fixed;width:208px;max-height:min(75vh,560px);overflow:auto;padding:8px;background:var(--color-bg-secondary);color:var(--color-text-primary);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 18px 42px rgba(0,0,0,.35);z-index:11000;font:14px/1.2 system-ui,sans-serif}.ccb-theme-picker__title{padding:5px 8px;color:var(--color-text-secondary);font-size:12px;font-weight:700}.ccb-theme-picker__option{width:100%;display:flex;align-items:center;gap:10px;text-align:left;padding:7px 8px;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer}.ccb-theme-picker__option:hover{background:var(--color-bg-tertiary)}.ccb-theme-picker__option[aria-checked="true"]{background:var(--color-blue);color:#fff}.ccb-theme-picker__swatch{width:15px;height:15px;border-radius:50%;flex:0 0 15px;border:1px solid color-mix(in srgb,var(--color-text-secondary) 60%,transparent)}.ccb-theme-picker__swatch--system{background:linear-gradient(135deg,#f8fafc 50%,#111827 50%)}

/* Padronização dos componentes legados do CCB */
html[data-theme] .welcome-section {
    background: var(--gradient-primary) !important;
    color: var(--text-inverse) !important;
}

html[data-theme] .stats-section,
html[data-theme] .module-card,
html[data-theme] .control-section-compact,
html[data-theme] .visits-section-compact {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme] .stats-section .stat-card {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

html[data-theme] .stats-section .stat-card *:not(i) {
    color: var(--text-primary) !important;
}

html[data-theme] .stats-section .stat-card i {
    color: var(--accent-color) !important;
}

html[data-theme] .stats-section h3,
html[data-theme] .control-title-compact,
html[data-theme] .visits-title-compact,
html[data-theme] .module-title,
html[data-theme] .module-description {
    color: var(--text-primary) !important;
}

html[data-theme] .table-responsive .table,
html[data-theme] .table-responsive .table td,
html[data-theme] .table-responsive .table th {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

html[data-theme] .contact-info,
html[data-theme] .label-compact,
html[data-theme] .stat-description,
html[data-theme] .search-icon-compact {
    color: var(--text-secondary) !important;
}

