/* assets/themes.css */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display:wght@400;500;700&display=swap');
/*@import url('https://fonts.googleapis.com/icon?family=Material+Icons');*/
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

/* Definições globais antes dos temas */
* {
    font-family: 'Noto Sans Display', sans-serif;
}

/* Tema escuro (padrão) */
[data-theme="dark"] {
    --background-primary: #121212;
    --background-secondary: #1E1E1E;
    --background-tertiary: #2D2D2D;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent-blue: #2D6CDF;
    --border: #404040;
    --hover: #3D3D3D;
    --success: #2E7D32;
    --warning: #ED6C02;
    --error: #D32F2F;
    --info: #0288D1;
}

[data-theme="dark"] .nav-button {
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="dark"] .nav-button:hover {
    background-color: var(--hover);
    color: var(--text-primary);
}

/* Tema claro */
[data-theme="light"] {
    --background-primary: #FFFFFF;
    --background-secondary: #F5F5F5;
    --background-tertiary: #EEEEEE;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --accent-blue: #1976D2;
    --border: #E0E0E0;
    --hover: #E8E8E8;
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;
}

[data-theme="light"] .nav-button {
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border-color: var(--border);
}

[data-theme="light"] .nav-button:hover {
    background-color: var(--hover);
    color: var(--text-primary);
}

/* Navbar */
[data-theme="dark"] .navbar {
    background-color: var(--background-tertiary);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar {
    background-color: var(--background-secondary);
    border-bottom: 1px solid var(--border);
}

/* O ☰ padrão do Bootstrap é escuro e some sobre a navbar do tema escuro. */
[data-theme="dark"] .navbar {
    --bs-navbar-toggler-border-color: var(--border);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-brand,
[data-theme="light"] .navbar-brand {
    color: var(--accent-blue);
    font-weight: 500;
}

/* Containers de página */
[data-theme="dark"] .page-container {
    background-color: var(--background-primary);
    color: var(--text-primary);
}

[data-theme="light"] .page-container {
    background-color: var(--background-primary);
    color: var(--text-primary);
}

/* Cartões */
[data-theme="dark"] .theme-card,
[data-theme="light"] .theme-card {
    background-color: var(--background-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

/* Cabeçalhos */
[data-theme="dark"] .theme-header,
[data-theme="light"] .theme-header {
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 16px;
}

/* Botões */
[data-theme="dark"] .theme-button,
[data-theme="light"] .theme-button {
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
}

[data-theme="dark"] .theme-button:hover,
[data-theme="light"] .theme-button:hover {
    opacity: 0.9;
}

/* DataTable */
[data-theme="dark"] .theme-datatable .dash-table-container,
[data-theme="light"] .theme-datatable .dash-table-container {
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-family: 'Noto Sans Display', sans-serif;
}

[data-theme="dark"] .theme-datatable .dash-header th,
[data-theme="light"] .theme-datatable .dash-header th {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
    font-weight: bold;
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .theme-datatable .dash-cell,
[data-theme="light"] .theme-datatable .dash-cell {
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .theme-datatable .dash-cell:hover,
[data-theme="light"] .theme-datatable .dash-cell:hover {
    background-color: var(--hover);
}

/* Tabs */
[data-theme="dark"] .dash-tabs,
[data-theme="light"] .dash-tabs {
    width: 100%;
    background-color: var(--background-secondary);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .tab,
[data-theme="light"] .tab {
    background-color: var(--background-secondary) !important;
    color: var(--text-secondary) !important;
    border: none !important;
    font-size: small;
}

[data-theme="dark"] .tab-parent,
[data-theme="light"] .tab-parent {
    width: 100% !important;
    display: flex;
    justify-content: center;
}

[data-theme="dark"] .tab:hover,
[data-theme="light"] .tab:hover {
    background-color: var(--hover) !important;
    cursor: pointer;
}

[data-theme="dark"] .dash-tab,
[data-theme="light"] .dash-tab {
    background-color: var(--background-secondary);
    color: var(--text-secondary);
    border: none;
    padding: 10px 20px;
}

[data-theme="dark"] .dash-tab.is-selected,
[data-theme="light"] .dash-tab.is-selected {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
    border-bottom: 3px solid var(--accent-blue);
    border-top: 3px solid var(--accent-blue);
}

[data-theme="dark"] .dash-tab:hover,
[data-theme="light"] .dash-tab:hover {
    background-color: var(--hover);
    cursor: pointer;
}

[data-theme="dark"] .dash-tabs-content,
[data-theme="light"] .dash-tabs-content {
    padding: 1rem;
    background-color: var(--background-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .dash-tab.tab--selected,
[data-theme="dark"] .tab--selected,
[data-theme="light"] .dash-tab.tab--selected,
[data-theme="light"] .tab--selected {
    background-color: var(--background-tertiary) !important;
    color: var(--text-primary) !important;
    border-bottom: 3px solid var(--accent-blue) !important;
    font-size: small;
}

/* Modal - tema escuro */

.theme-dark.modal-content.debussy-modal-wrapper {
    background-color: #2D2D2D !important;
    color: #FFFFFF !important;
    border: 1px solid #444;
    border-radius: 8px;
}

.theme-dark .modal-header.debussy-modal-header {
    background-color: #1E1E1E !important;
    color: #FFFFFF !important;
    border-bottom: 1px solid #444;
    padding: 16px 20px;
}

.theme-dark .debussy-modal-title {
    color: #61dafb;
    font-weight: 500;
}

.theme-dark .modal-body.debussy-modal-body {
    background-color: #2D2D2D !important;
    color: #FFFFFF !important;
    padding: 20px;
}

.theme-dark .modal-footer.debussy-modal-footer {
    background-color: #1E1E1E !important;
    border-top: 1px solid #444;
    padding: 12px 20px;
}

.theme-dark .debussy-modal-button-primary {
    background-color: #61dafb;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
}

.theme-dark .debussy-modal-button-primary:hover {
    opacity: 0.9;
}

.debussy-modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}
