/* style.css */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===== VARIÁVEIS DO SIDEBAR ===== */
:root {
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 80px;
}

/* ===== ESTILOS GERAIS E PERSONALIZADOS ===== */

/* Variáveis de cores para tema claro */
:root {
    --primary-color: #1965f1;
    /* Azul médio */
    --secondary-color: #1a0fe4;
    /* Roxo azulado */
    --accent-color: #1965f1;
    /* Roxo forte */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --icon-color: #e5e7eb;
    /* Cinza claro para ícones no tema escuro */

    --text-primary: #1e293b;
    /* Azul bem escuro */
    --text-secondary: #5e87bd;
    /* Cinza azulado */
    --bg-primary: #c6e0fd;
    /* Fundo cinza-claro */
    --bg-secondary: #ffffff;
    /* Fundo branco */
    --border-color: #e2e8f0;
    --button-primary-start: #1965f1;
    --button-primary-end: #0f4ad6;
    --button-primary-hover-start: #0f4ad6;
    --button-primary-hover-end: #0b3bb0;
    --button-secondary-start: #1a0fe4;
    --button-secondary-end: #140bc2;
    --button-secondary-hover-start: #140bc2;
    --button-secondary-hover-end: #10089b;
    --button-accent-start: #db2777;
    --button-accent-end: #be185d;
    --button-accent-hover-start: #be185d;
    --button-accent-hover-end: #9d174d;
    --button-danger-start: var(--danger-color);
    --button-danger-end: #dc2626;
    --button-danger-hover-start: #dc2626;
    --button-danger-hover-end: #b91c1c;
}

/* Variáveis de cores para tema escuro */
.dark {
    --primary-color: #3b82f6;
    /* Azul mais forte para tema escuro */
    --secondary-color: #6366f1;
    /* Índigo */
    --accent-color: #f472b6;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --bg-primary: #29225e;
    --bg-secondary: #1f2937;
    --border-color: #374151;
    --icon-color: #e5e7eb;
    /* Cinza claro para ícones no tema escuro */
}

/* Estilos gerais para a aplicação */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ===== ESTILOS PARA SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    transition: all 0.3s ease;
}

.dark .sidebar {
    background: linear-gradient(135deg, #1e0f55 0%, #3313b3 100%);
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .sidebar-link:hover,
.dark .sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background: var(--bg-secondary);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: var(--primary-color);
    color: white;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.collapsed .sidebar-link {
    text-align: center;
    padding: 1rem !important;
    margin: 4px 8px;
}

.collapsed .sidebar-link i {
    margin: 0 !important;
}

.main-content {
    margin-left: var(--sidebar-width);
    background-color: var(--bg-primary);
    /* Esta cor está correta (#d4e3f4) */
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.collapsed ~ .main-content {
    margin-left: var(--sidebar-width-collapsed);
    background-color: var(--bg-primary);
    /* Adicione esta linha */
}

/* ===== ESTILOS PARA CARDS ===== */
.card {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-primary {
    border-top: 4px solid var(--primary-color);
}

.card-secondary {
    border-top: 4px solid var(--secondary-color);
}

.card-success {
    border-top: 4px solid var(--success-color);
}

.card-warning {
    border-top: 4px solid var(--warning-color);
}

.card-danger {
    border-top: 4px solid var(--danger-color);
}

/* ===== ESTILOS PARA BOTÕES ===== */
/* ===== ESTILOS PARA BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--button-primary-start) 0%,
        var(--button-primary-end) 100%
    );
    /* Tom azul do menu */
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(
        135deg,
        var(--button-primary-hover-start) 0%,
        var(--button-primary-hover-end) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(59, 130, 246, 0.4);
}

/* Se quiser manter outros tipos de botões com cores diferentes */
.btn-secondary {
    background: linear-gradient(
        135deg,
        var(--button-secondary-start) 0%,
        var(--button-secondary-end) 100%
    );
    color: white;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(
        135deg,
        var(--button-secondary-hover-start) 0%,
        var(--button-secondary-hover-end) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(139, 92, 246, 0.4);
}

.btn-accent {
    background: linear-gradient(
        135deg,
        var(--button-accent-start) 0%,
        var(--button-accent-end) 100%
    );
    color: white;
    box-shadow: 0 4px 6px rgba(236, 72, 153, 0.3);
    border: none;
}

.btn-accent:hover {
    background: linear-gradient(
        135deg,
        var(--button-accent-hover-start) 0%,
        var(--button-accent-hover-end) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(236, 72, 153, 0.4);
}

.btn-danger {
    background: linear-gradient(
        135deg,
        var(--button-danger-start) 0%,
        var(--button-danger-end) 100%
    );
    color: white;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(239, 68, 68, 0.4);
}

/* ===== ESTILOS PARA NAVBAR ===== */
.navbar {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    border-bottom: 1px solid var(--border-color);
}

.dark .navbar {
    background: linear-gradient(135deg, #1e0f55 0%, #3313b3 100%);
}

/* ===== CORREÇÕES ESPECÍFICAS PARA NAVBAR ===== */

/* Forçar TODO o texto na navbar a ser branco no tema claro */
/* .navbar,
.navbar *:not(.search-container input):not(.search-container svg) {
    color: white !important;
} */

/* Exceção para a barra de pesquisa - manter comportamento original */
.search-container input,
.search-container svg {
    color: var(--text-primary) !important;
}

.search-container input::placeholder {
    color: var(--text-secondary) !important;
}

/* Manter o comportamento original no tema escuro */
.dark .navbar,
.dark .navbar * {
    color: var(--text-primary) !important;
}

.dark .search-container input,
.dark .search-container svg {
    color: var(--text-primary) !important;
}

/* Estilos específicos para o texto RDC 318 */
.navbar .self-center.text-xl {
    color: white !important;
}

.dark .navbar .self-center.text-xl {
    color: var(--text-primary) !important;
}

/* Garantir que os ícones fiquem brancos no tema claro */
.navbar svg {
    color: white !important;
}

.dark .navbar svg {
    color: var(--icon-color) !important;
}

/* Hover effects */
.navbar button:hover svg {
    color: var(--bg-primary) !important;
}

.dark .navbar button:hover svg {
    color: white !important;
}

/* ===== ESTILOS PARA FORMULÁRIOS ===== */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===== ESTILOS PARA GRÁFICOS ===== */
.apexcharts-tooltip {
    border-radius: 0.5rem !important;
    border-width: 0 !important;
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

.apexcharts-tooltip .apexcharts-tooltip-title {
    border-bottom-width: 1px !important;
    border-color: var(--border-color) !important;
    background-color: var(--bg-primary) !important;
    padding: 0.5rem 1rem !important;
}

.apexcharts-xaxistooltip {
    border-radius: 0.5rem !important;
    border-width: 0 !important;
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
}

.apexcharts-tooltip .apexcharts-tooltip-text-y-value {
    color: var(--text-primary) !important;
}

.apexcharts-xaxistooltip-text {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.25rem !important;
}

.apexcharts-xaxistooltip:before,
.apexcharts-xaxistooltip:after {
    border-width: 0 !important;
}

/* ===== ESTILOS PARA TABELAS ===== */
.table-container {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.table-header {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
    color: white;
    padding: 1rem;
}

.table-row {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background-color: var(--bg-primary);
}

/* ===== ANIMAÇÕES PERSONALIZADAS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== UTILITÁRIOS PERSONALIZADOS ===== */
.gradient-text {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-color) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 100%
    );
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        z-index: 40;
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: 0 !important;
    }
}

/* ===== ESTILOS PARA KANBAN ===== */
.drag-card {
    opacity: 1 !important;
    transform: rotate(6deg);
}

.ghost-card {
    background-color: rgba(209, 213, 219, 0.4) !important;
}

.dark .ghost-card {
    background-color: rgba(75, 85, 99, 0.4) !important;
}

/* ===== ESTILOS PARA FEED ===== */
@media (min-width: 1280px) {
    .feed-container {
        height: calc(100vh - 4rem);
    }
}

/* ===== ESTILOS PARA CALENDÁRIO ===== */
.fc .fc-toolbar {
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.25rem !important;
}

.fc .fc-toolbar-title {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    line-height: 1.75rem !important;
    color: var(--text-primary) !important;
}

.fc .fc-today-button {
    border-radius: 0.5rem !important;
    border-width: 1px !important;
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.25rem !important;
    padding: 0.5rem 1rem !important;
    color: var(--text-primary) !important;
}

.fc .fc-today-button:hover {
    background-color: var(--bg-primary) !important;
    color: var(--primary-color) !important;
}

.fc-direction-ltr .fc-toolbar > * > :not(:first-child) {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
}

.fc .fc-button-group .fc-prev-button,
.fc .fc-button-group .fc-next-button {
    background-color: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
}

.fc .fc-button-group .fc-prev-button:hover,
.fc .fc-button-group .fc-next-button:hover {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.fc .fc-scrollgrid {
    border-left-width: 0 !important;
    border-color: var(--border-color) !important;
}

.fc .fc-daygrid-day-frame {
    border-color: var(--border-color) !important;
}

.fc .fc-col-header-cell-cushion {
    color: var(--text-primary) !important;
}

.fc-theme-standard th {
    border-bottom-width: 1px !important;
    border-color: var(--border-color) !important;
}

.fc .fc-event .fc-event-main {
    background-color: var(--primary-color) !important;
}

.fc .fc-event .fc-event-main:hover {
    background-color: var(--secondary-color) !important;
}

.fc .fc-daygrid-day-frame {
    cursor: pointer !important;
}

.fc .fc-daygrid-day-frame:hover {
    background-color: var(--bg-primary) !important;
}

/* CORREÇÕES ADICIONADAS */

/* 1. Corrigir visibilidade do ícone de tema claro */
#theme-toggle-light-icon {
    display: none;
}

.light #theme-toggle-dark-icon {
    display: none;
}

.light #theme-toggle-light-icon {
    display: block;
}

/* 2. Corrigir espaçamento na barra de pesquisa */
.search-container {
    display: flex;
    align-items: center;
}

.search-container .absolute {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.search-container input {
    padding-left: 40px !important;
    padding-right: 12px;
}

/* 3. ESTILOS PARA ÍCONES NO TEMA ESCURO */
.dark .navbar svg,
.dark .sidebar svg {
    color: var(--icon-color) !important;
}

.dark .search-container svg {
    color: #9ca3af !important;
    /* Cinza médio para ícone de busca */
}

.dark .toggle-btn {
    color: var(--icon-color) !important;
}

.dark .toggle-btn:hover {
    color: white !important;
}

/* Estilo específico para ícones de aplicativos no navbar */
.dark [data-dropdown-toggle="apps-dropdown"] svg {
    color: var(--icon-color) !important;
}

.dark [data-dropdown-toggle="apps-dropdown"]:hover svg {
    color: white !important;
}

/* Forçar todo o texto dos itens do aside (li, a, span) a ser branco no tema claro */
.sidebar li,
.sidebar li a,
.sidebar li span {
    color: white !important;
}

/* Manter comportamento original no tema escuro */
.dark .sidebar li,
.dark .sidebar li a,
.dark .sidebar li span {
    color: var(--text-primary) !important;
}

/* Garantir que ícones dentro do aside fiquem brancos no tema claro */
.sidebar li i,
.sidebar li svg {
    color: white !important;
}

/* Ícones no tema escuro mantém configuração global */
.dark .sidebar li i,
.dark .sidebar li svg {
    color: var(--icon-color) !important;
}

/* Estilos para o mini menu de apps no tema claro */
#apps-dropdown {
    background-color: #5995d2;
    border: 1px solid #9bc0e5;
}

#apps-dropdown .block {
    background-color: #6478ae;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

#apps-dropdown a {
    color: #475569;
}

#apps-dropdown a:hover {
    background-color: #e2e8f0;
}

#apps-dropdown .text-sm {
    color: #1e293b;
}

/* Estilos para o tema escuro (mantendo os existentes) */
.dark #apps-dropdown {
    background-color: #374151;
    border-color: #4b5563;
}

.dark #apps-dropdown .block {
    background-color: #4b5563;
    color: #f3f4f6;
    border-bottom-color: #6b7280;
}

.dark #apps-dropdown a {
    color: #d1d5db;
}

.dark #apps-dropdown a:hover {
    background-color: #4b5563;
}

.dark #apps-dropdown .text-sm {
    color: #f9fafb;
}

.dark #card-central {
    background: linear-gradient(135deg, #1f0e5c 0%, #271180 100%) !important;
}

#card-central {
    background: #ffffff;
}

/* fundo igual ao card */
.table-card table {
    background-color: inherit !important;
    border-color: inherit !important;
    color: inherit !important;
}

/* modo claro */
#card-central,
.table-card {
    background-color: #fcfcfd !important;
}

/* modo escuro */
.dark #card-central,
.dark .table-card {
    background-color: #1f0e5c !important;
}

/* Força o tbody e as linhas a herdarem o fundo do card */
#card-central table tbody,
#card-central table tr {
    /* background-color: transparent !important; */
}
/* Linhas brancas alternadas */
#card-central table tbody tr:nth-child(odd) {
    background-color: #f3f4f6 !important; /* branco */
}

#card-central table tbody tr:nth-child(even) {
    background-color: #eff0f1 !important; /* gray-100 */
}

#card-central table tbody tr:hover {
    background-color: #e5e7eb !important; /* gray-200 no hover */
}

/* Cabeçalho */
#card-central table thead {
    background-color: #e5e7eb !important; /* gray-200 */
}

/* Cabeçalho da tabela - Tema escuro (manter como está ou ajustar) */
.dark #card-central table thead {
    background-color: #374151 !important; /* gray-700 */
}
.dark #card-central table tbody tr:nth-child(odd) {
    background-color: #1f2937 !important; /* gray-800 */
}

.dark #card-central table tbody tr:nth-child(even) {
    background-color: #374151 !important; /* gray-700 */
}

.dark #card-central table thead th {
    color: #d1d5db !important; /* gray-300 */
}
/* Mantém o efeito de hover com leve transparência */
#card-central table tr:hover {
    background-color: rgba(77, 114, 151, 0.5) !important;
    /* modo claro */
}

.dark #card-central table tr {
    background-color: #1e1b25 !important;
    /* modo escuro (gray-700 com 50% opacidade) */
}

.dark #card-central table tr:hover {
    background-color: #353538 !important;
    /* modo escuro (gray-700 com 50% opacidade) */
}

/* Definição do highlight para o link ativo */
.sidebar-link.active,
.sidebar-sublink.active {
    /* Estilo para Modo Claro */
    background-color: #4b99ff;
    /* Tailwind: bg-blue-100 */
    color: #2563eb;
    /* Tailwind: text-blue-600 */
    font-weight: 500;
    /* Tailwind: font-medium */
}

/* Estilo para Modo Escuro */
.dark .sidebar-link.active,
.dark .sidebar-sublink.active {
    background-color: #1e3a8a;
    /* Tailwind: dark:bg-blue-900 */
    color: #93c5fd;
    /* Tailwind: dark:text-blue-300 */
}

/* Garante que o ícone dentro do link ativo também mude de cor */
.dark .sidebar-link.active i,
.sidebar-link.active i {
    color: #2563eb;
    /* Tailwind: text-blue-600 */
}

.dark .sidebar-link.active i {
    color: #93c5fd;
    /* Tailwind: dark:text-blue-300 */
}

.svg-wrap .svg-pan-zoom-control svg-pan-zoom-reset {
    display: none !important;
}
/* ===== OVERRIDE PARA DROPDOWNS/BOTÕES COM FUNDO AZUL CLARO ===== */
/* ADICIONE ESTE BLOCO NO FINAL DO ARQUIVO */

/* 1. Override ABSOLUTO para selects/dropdowns */
select,
select[class*="bg-"],
select.bg-blue-100,
select.bg-blue-50,
select.estat-dropdown {
    background-color: #dbeafe !important; /* bg-blue-100 */
    border-color: #d1d5db !important; /* border-gray-300 */
    color: #1f2937 !important; /* text-gray-800 */
}

/* 2. Hover para dropdowns */
select:hover,
select[class*="bg-"]:hover,
select.bg-blue-100:hover {
    background-color: #bfdbfe !important; /* hover:bg-blue-200 */
}

/* 3. Para inputs também */
input.bg-blue-100,
textarea.bg-blue-100,
input[type="text"].bg-blue-100,
input[type="number"].bg-blue-100 {
    background-color: #dbeafe !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

/* 4. Remove qualquer fundo branco que esteja sobrescrevendo */
select.bg-white,
input.bg-white,
textarea.bg-white {
    background-color: #dbeafe !important;
}

/* 5. Para botões (se for o caso) */
button.bg-blue-100,
.btn.bg-blue-100 {
    background-color: #dbeafe !important;
    color: #1f2937 !important;
}

button.bg-blue-100:hover,
.btn.bg-blue-100:hover {
    background-color: #bfdbfe !important;
}

/* 6. Tema escuro - mantém o original */
.dark select,
.dark select[class*="bg-"],
.dark select.bg-blue-100 {
    background-color: #374151 !important; /* dark:bg-gray-700 */
    border-color: #4b5563 !important; /* dark:border-gray-600 */
    color: #f3f4f6 !important; /* dark:text-white */
}

.dark select:hover,
.dark select[class*="bg-"]:hover {
    background-color: #4b5563 !important; /* dark:hover:bg-gray-600 */
}

/* 7. Estilo de seta para dropdowns */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}

.dark select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23d1d5db' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
}

/* ===== OVERRIDE PARA INPUTS COM FUNDO AZUL CLARO ===== */
/* ADICIONE ESTE BLOCO NO FINAL DO ARQUIVO */

/* 1. Inputs de texto */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    background-color: #eff6ff !important; /* bg-blue-50 */
    border-color: #d1d5db !important; /* border-gray-300 */
    color: #1f2937 !important; /* text-gray-800 */
    transition: all 0.2s ease !important;
}

/* 2. Inputs específicos da aplicação */
input.estat-input,
input.estat-form-input,
input[data-estat-field="true"],
textarea.estat-input,
textarea[data-estat-field="true"] {
    background-color: #eff6ff !important; /* bg-blue-50 */
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

/* 3. Hover para inputs */
input[type="text"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
textarea:hover,
input.estat-input:hover,
textarea.estat-input:hover {
    background-color: #dbeafe !important; /* hover:bg-blue-100 */
}

/* 4. Focus state */
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus,
input.estat-input:focus,
textarea.estat-input:focus {
    border-color: #3b82f6 !important; /* focus:border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important; /* focus:ring */
    outline: none !important;
}

/* 5. Placeholder */
input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: #6b7280 !important; /* placeholder-gray-400 */
}

/* 6. Inputs específicos com bg-blue-100 */
input.bg-blue-100,
textarea.bg-blue-100,
input[data-bg-color="blue-light"] {
    background-color: #dbeafe !important; /* bg-blue-100 */
}

input.bg-blue-100:hover,
textarea.bg-blue-100:hover {
    background-color: #bfdbfe !important; /* hover:bg-blue-200 */
}

/* 7. Remove fundo branco de inputs existentes */
input.bg-white,
textarea.bg-white {
    background-color: #eff6ff !important;
}

/* 8. Tema escuro - mantém original */
.dark input[type="text"],
.dark input[type="number"],
.dark input[type="email"],
.dark textarea,
.dark input.estat-input,
.dark textarea.estat-input {
    background-color: #374151 !important; /* dark:bg-gray-700 */
    border-color: #4b5563 !important; /* dark:border-gray-600 */
    color: #f3f4f6 !important; /* dark:text-white */
}

.dark input[type="text"]:hover,
.dark input[type="number"]:hover,
.dark textarea:hover {
    background-color: #4b5563 !important; /* dark:hover:bg-gray-600 */
}

.dark input[type="text"]:focus,
.dark input[type="number"]:focus,
.dark textarea:focus {
    border-color: #3b82f6 !important; /* dark:focus:border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
}

.dark input[type="text"]::placeholder,
.dark input[type="number"]::placeholder,
.dark textarea::placeholder {
    color: #9ca3af !important; /* dark:placeholder-gray-400 */
}

/* 9. Inputs de busca na navbar (exceção) */
.search-container input {
    background-color: white !important; /* Mantém branco */
}

.dark .search-container input {
    background-color: #1f2937 !important; /* Mantém escuro */
}