/*
 * CADsys - Estilos Principais Glassmorphism/Azul
 * Arquivo: style.css
 * Autor: Gemini (Refatorado)
 * Base: Bootstrap 5
 */

/* =======================================================
   1. RESET BÁSICO E CONFIGURAÇÃO GERAL
   ======================================================= */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fafafa; /* Cor base azul claro do sistema */
    overflow-x: hidden;
    color: #000000; /* Cor de texto padrão */
}

   /* Estilo geral para a página */
body {
    color: black; /* Define a cor do texto como preta */
    font-family: Arial, sans-serif; /* Define a fonte para o corpo */
    font-size: 16px; /* Tamanho da fonte */
    background-color: #f4f4f4; /* Cor de fundo clara, pode ser ajustada conforme necessário */
}

/* Garantir que títulos (h1, h2, h3, etc.) também tenham texto preto */
h1, h2, h3, h4, h5, h6 {
    color: black;
}

p, span, li, a {
    color: black;
}

/* Formatação para campos de entrada, textareas, selects */
input, textarea, select {
    color: black; /* Cor do texto dentro dos campos */
    border: 1px solid #ccc; /* Borda leve para campos */
    background-color: white; /* Cor de fundo dos campos de entrada */
    padding: 8px; /* Espaçamento interno para o conforto */
    font-size: 14px; /* Tamanho da fonte nos campos */
}

/* Estilo para as labels */
label {
    color: black; /* Define a cor do texto da label como preta */
    font-weight: bold; /* Deixa as labels em negrito para destaque */
    font-size: 14px; /* Ajuste do tamanho da fonte da label */
}

/* Ajuste para links, para que os links não fiquem com cor diferente */
a {
    color: black; /* Definir links como preto */
    text-decoration: none; /* Remover o sublinhado dos links */
}

a:hover {
    text-decoration: underline; /* Sublinhado ao passar o mouse */
}

/* Foco nos inputs, textarea e selects para manter a borda visível */
input:focus, textarea:focus, select:focus {
    border-color: #0d47a1; /* Cor da borda ao focar nos campos */
    outline: none; /* Remove a borda padrão de foco */
}

/* Adicionar cor preta também para os elementos de erro de validação */
input.is-invalid, textarea.is-invalid, select.is-invalid {
    border-color: #dc3545; /* Borda vermelha para erro */
}

input.is-valid, textarea.is-valid, select.is-valid {
    border-color: #28a745; /* Borda verde para campos válidos */
}

/* --- Menu Horizontal (Header) --- */
.top-navbar-horizontal {
    background: linear-gradient(90deg, #b3e5fc, #03a9f4);
    box-shadow: 0 4px 15px rgba(2, 136, 209, 0.4);
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    position: sticky; /* Menu fixo no topo */
    top: 0;
    z-index: 1000;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    margin: 0; 
    padding: 0; 
}

.nav-links li {
    margin: 0 10px; 
}

/* Estilo do link e ícone do menu horizontal */
.nav-links a { 
    color: #0d47a1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    padding: 5px 8px; 
    border-radius: 8px; 
    font-weight: 600; 
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a i { 
    color: #0d47a1; 
    font-size: 24px; /* Ícone Grande */
    margin-bottom: 5px; 
}

.nav-links a:hover,
.nav-links a.active { 
    background-color: #0288d1;
    color: white; 
}

.nav-links a:hover i,
.nav-links a.active i { 
    color: white; 
}

/* Estilo do Dropdown de Usuário */
.dropdown-menu.profile-notification {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

.pro-head { 
    background: linear-gradient(90deg, #03a9f4 0%, #0288d1 100%);
    color: white;
    padding: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =======================================================
   2. LAYOUT PRINCIPAL E CORREÇÕES (Compatibilidade PCoded/BS5)
   ======================================================= */

/* Anula as restrições de largura do tema base (PCoded) */
.pcoded-main-container {
    padding-top: 20px; 
    padding-bottom: 20px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
}
.pcoded-content {
    padding: 0 !important;
    margin: 0 !important;
}
.container-fluid-full { 
    width: 100%;
    padding: 0 20px; /* Padding nas laterais do conteúdo */
    margin: auto; 
}

/* =======================================================
   3. ESTILOS DO GLASSMORPHISM (Cards e Tabelas)
   ======================================================= */

/* Cards de Gráfico/Tabela Principal */
.card-glass-metric {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px 0 rgba(31, 38, 135, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s;
    overflow: hidden;
    padding: 0; /* O padding será dado pelo card-body */
}
.card-glass-metric:hover { 
    transform: translateY(-5px); 
}
.card-chart-title { 
    color: #0d47a1 !important; 
    font-weight: 700; 
    font-size: 1.25rem;
}
.card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); 
}

/* Cards de Sumário Rápido (Top 5 Cards) */
.summary-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
.summary-card:hover { 
    box-shadow: 0 6px 15px rgba(2, 136, 209, 0.3);
}
.summary-card i { 
    color: #0288d1; 
    font-size: 36px;
    margin-bottom: 10px; 
}
.summary-card h4 { 
    color: #0d47a1; 
    font-size: 32px; 
    font-weight: 700; 
    margin: 0; 
}
.summary-card span { 
    color: #42a5f5; 
    font-size: 16px; 
    font-weight: 500; 
}

/* Estilo da Tabela nos Cards Glassmorphism */
.table-responsive .table {
    border-radius: 0 0 15px 15px; 
    overflow: hidden;
    color: #0d47a1; 
}
.table-responsive table thead tr {
    background-color: #03a9f4 !important; 
    color: white;
}
.table-responsive table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.4);
}
.table-responsive table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.2);
}
.table-responsive table tbody tr:hover {
    background: rgba(3, 169, 244, 0.3) !important;
}

/* =======================================================
   4. TELA DE LOGIN (Mantida)
   ======================================================= */
/* (Aqui devem seguir todos os estilos da tela de login que você forneceu anteriormente) */

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(135deg, #b3e5fc 0%, #03a9f4 100%);
    position: relative;
    z-index: 1;
}

.login-form-card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    transition: transform 0.3s ease;
}

.btn-login {
    /* ... estilos do botão login ... */
}
/* ... etc. ... */


/* =======================================================
   5. RESPONSIVIDADE ADICIONAL
   ======================================================= */

/* Ajustes finos para o menu em telas menores (celular) */
@media (max-width: 991.98px) {
    /* Oculta o endereço na tabela */
    .d-md-table-cell {
        display: none !important;
    }
    
    /* Ajusta menu horizontal (o menu quebra em 2 colunas com a classe row-cols-md-3) */
    .nav-links {
        flex-wrap: wrap; 
        justify-content: center;
    }
    .top-navbar-horizontal {
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        flex-direction: column;
    }
    .navbar-brand, .dropdown {
        margin-bottom: 10px;
    }
}

/* --- ESTILOS DE FORMULÁRIO (Glassmorphism Input) --- */

.glass-input {
    /* Base Glassmorphism */
    background: rgba(255, 255, 255, 0.7); /* Fundo semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Borda suave */
    border-radius: 10px;
    color: #000000; /* Texto azul para melhor leitura */
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px !important;
}

.glass-input::placeholder {
    color: #000; /* Placeholder azul claro */
}

.glass-input:focus {
    outline: none;
    border-color: #039be5;
    background: #ffffff; /* Fundo sólido ao focar */
    box-shadow: 0 0 0 3px rgba(3, 155, 229, 0.3); /* Efeito de foco suave */
}

/* Corrigir a cor do texto do label e select/option (se necessário) */
.form-label {
    font-weight: 500;
    color: #00008B;
}

/* Estilo para botões de Ação (Ajustando cores do Bootstrap 5) */
.btn-success-custom {
    background-color: #2e7d32; /* Verde forte (Ativo) */
    border-color: #2e7d32;
    color: white;
    transition: all 0.3s;
}
.btn-success-custom:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
    color: white;
}
.btn-danger-custom {
    background-color: #d32f2f; /* Vermelho forte (Inativo/Cancelar) */
    border-color: #d32f2f;
    color: white;
    transition: all 0.3s;
}
.btn-danger-custom:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: white;
}
/*
 * CADsys - Estilos Principais Glassmorphism/Azul (COM CORREÇÕES DE PRIORIDADE)
 * Arquivo: style.css
 * Autor: Gemini (Refatorado)
 * Base: Bootstrap 5
 */

/* =======================================================
   1. RESET BÁSICO E CONFIGURAÇÃO GERAL
   ======================================================= */
body, html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important; /* Força a fonte */
    background: #e0f7fa !important; /* Cor base azul claro do sistema */
    overflow-x: hidden;
    color: #0d47a1; 
}

/* --- Menu Horizontal (Header) --- */
.top-navbar-horizontal {
    background: linear-gradient(90deg, #b3e5fc, #03a9f4) !important;
    box-shadow: 0 4px 15px rgba(2, 136, 209, 0.6) !important;
    /* ... (restante do CSS do menu mantido) ... */
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Força cor dos links do menu */
.nav-links a { 
    color: #0d47a1 !important; 
    /* ... (restante do CSS do link) ... */
}
.nav-links a:hover,
.nav-links a.active { 
    background-color: #0288d1 !important;
    color: white !important; 
}
.nav-links a:hover i,
.nav-links a.active i { 
    color: white !important; 
}


/* =======================================================
   2. LAYOUT PRINCIPAL E CORREÇÕES (Compatibilidade PCoded/BS5)
   ======================================================= */

.pcoded-main-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
}
.pcoded-content {
    padding: 0 !important;
    margin: 0 !important;
}
.container-fluid-full { 
    width: 100%;
    padding: 0 20px !important; /* Força o padding do conteúdo */
    margin: auto; 
}

/* =======================================================
   3. ESTILOS DO GLASSMORPHISM (Cards e Tabelas)
   ======================================================= */

/* Cards de Gráfico/Tabela Principal */
.card-glass-metric {
    background: rgba(255, 255, 255, 0.2) !important; /* Força o fundo transparente */
    border: 1px solid rgba(255, 255, 255, 0.4) !important; /* Força a borda */
    box-shadow: 0 4px 12px 0 rgba(31, 38, 135, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 15px !important; /* Força o border radius */
    padding: 0; 
    /* ... (restante do CSS do card) ... */
}

/* Cards de Sumário Rápido (Top 5 Cards) */
.summary-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important; /* Força o fundo do summary card */
    border-radius: 15px !important;
    padding: 20px !important;
    /* ... (restante do CSS do summary card) ... */
}


/* --- ESTILOS DE FORMULÁRIO (Glassmorphism Input) --- */
.glass-input {
    background: rgba(255, 255, 255, 0.7) !important; 
    border: 1px solid rgba(255, 255, 255, 0.5) !important; 
    border-radius: 10px !important;
    color: #000000 !important; 
    /* ... (restante do CSS do input) ... */
}

/* Estilo da Tabela nos Cards Glassmorphism */
.table-responsive table thead tr {
    background-color: #03a9f4 !important; /* Força o cabeçalho azul */
    color: white !important;
}
/* ... (restante do CSS da tabela e do login) ... */

/* --- TELA DE LOGIN --- */
.login-wrapper {
    background: linear-gradient(135deg, #b3e5fc 0%, #03a9f4 100%) !important;
}
.login-form-card {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    /* ... (restante do CSS do card de login) ... */
}

/* (Mantenha o restante do código do style.css original aqui) */

/*
 * CADsys - Estilos Principais Glassmorphism/Azul
 * Arquivo: style.css
 * Autor: Gemini (Refatorado)
 * Base: Bootstrap 5
 */

/* =======================================================
   1. RESET BÁSICO E CONFIGURAÇÃO GERAL
   ======================================================= */
body, html {
    margin: 0 !important;
    padding: 0 !important;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important; /* Força a fonte */
    background: #fafafa !important; /* MUDANÇA: Fundo do sistema agora é cinza claríssimo (quase branco) */
    overflow-x: hidden;
    color: #0d47a1; 
}

/* --- Menu Horizontal (Header) --- */
.top-navbar-horizontal {
    background: linear-gradient(90deg, #b3e5fc, #03a9f4) !important;
    box-shadow: 0 4px 15px rgba(2, 136, 209, 0.6) !important;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Força cor dos links do menu */
.nav-links a { 
    color: #0d47a1 !important; 
}
.nav-links a:hover,
.nav-links a.active { 
    background-color: #0288d1 !important;
    color: white !important; 
}
.nav-links a:hover i,
.nav-links a.active i { 
    color: white !important; 
}


/* =======================================================
   2. LAYOUT PRINCIPAL E CORREÇÕES (Compatibilidade PCoded/BS5)
   ======================================================= */

.pcoded-main-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
}
.pcoded-content {
    padding: 0 !important;
    margin: 0 !important;
}
.container-fluid-full { 
    width: 100%;
    padding: 0 20px !important; /* Força o padding do conteúdo */
    margin: auto; 
}

/* =======================================================
   3. ESTILOS DO GLASSMORPHISM (Cards e Tabelas)
   ======================================================= */

/* Cards de Gráfico/Tabela Principal */
.card-glass-metric {
    /* Mantém o fundo transparente e o blur para interagir com o fundo cinza/branco */
    background: rgba(255, 255, 255, 0.2) !important; 
    border: 1px solid rgba(255, 255, 255, 0.4) !important; 
    box-shadow: 0 4px 12px 0 rgba(31, 38, 135, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-radius: 15px !important; 
    padding: 0; 
    color: #0d47a1;
    transition: transform 0.3s;
    overflow: hidden;
}
.card-glass-metric:hover { 
    transform: translateY(-5px); 
}
.card-chart-title { 
    color: #0d47a1 !important; 
    font-weight: 700; 
    font-size: 1.25rem;
}

/* Cards de Sumário Rápido (Top 5 Cards) */
.summary-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important; /* Mantém o gradiente para destacar */
    border-radius: 15px !important;
    padding: 20px !important;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

/* --- ESTILOS DE FORMULÁRIO (Glassmorphism Input) --- */
.glass-input {
    background: rgba(255, 255, 255, 0.7) !important; 
    border: 1px solid rgba(255, 255, 255, 0.5) !important; 
    border-radius: 10px !important;
    color: #000000 !important; 
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px !important;
    transition: all 0.3s ease;
}

/* Estilo da Tabela nos Cards Glassmorphism */
.table-responsive table thead tr {
    background-color: #03a9f4 !important; /* Força o cabeçalho azul */
    color: white !important;
}

/* =======================================================
   4. TELA DE LOGIN (MANTIDO O FUNDO AZUL VIBRANTE)
   ======================================================= */
.login-wrapper {
    /* Mantido o gradiente azul VIBRANTE conforme solicitado para o LOGIN */
    background: linear-gradient(135deg, #b3e5fc 0%, #03a9f4 100%) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

.login-form-card {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 20px;
    /* ... (restante do CSS do card de login) ... */
}
/* (Mantenha o restante do código do style.css original aqui) */