/* ==========================================================================
   ESTRUTURA BASE E CONTAINERS
   ========================================================================== */
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 2vh; }
.container-full { width: 100%; min-width: 320px; }

/* SISTEMA DE GRID (LEGACY) */
.grid-3 { float: left; padding: 20px; width: 25%; }
.grid-4 { float: left; padding: 20px; width: 33.33333%; }
.grid-6 { float: left; padding: 20px; width: 50%; }
.grid-12 { float: left; padding: 20px; width: 100%; }

@media (min-width: 920px) {
    .grid-lg-6 { width: 50%; }
    .grid-lg-12 { width: 100%; }
}
@media (min-width: 1220px) {
    .grid-xl-3 { width: 25%; }
}

/* SIDEBAR E CONTEÚDO */
.main-nav { width: 100%; max-width: 360px; background-color: var(--secondary-color); transition: all 0.3s ease; }
.main-content { overflow: visible !important; height: auto !important; min-height: 100vh;
 /*padding-top: 80px; */
} /* padding p/ compensar header fixo */

/* ==========================================================================
   HEADER MODERNO (CULCO 2.0)
   ========================================================================== */
.header {
    width: 100% !important;
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0 20px;
    position: fixed;
    top: 0;
    z-index: 9999;
}

.header-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 100%;
    max-width: 100%;
}

/* Blocos do Header */
.header-left { flex: 0 0 auto; }
.header-center { 
    flex: 1; 
    max-width: 600px; 
    margin: 0 40px; 
}
.header-right { 
    flex: 0 0 auto; 
    display: flex; 
    align-items: center;
}

/* Busca Refinada */
.search-form { display: flex; width: 100%; }
.form-busca {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
    font-size: 14px;
}
.form-busca-button {
    background: var(--primary-color-contrast, #fff); /* Inverti para o texto ser o contraste */
    color: var(--primary-color, #000);    /* E o fundo ser a cor primária */
    border: 1px solid var(--primary-color, #000);
    padding: 0 20px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;                 /* Transição suave para o hover */
}
.form-busca-button:hover {
    background: var(--primary-color, #000);
    color: var(--primary-color-contrast, #fff);
    border: 1px solid #ddd
}

/* ==========================================================================
   USER DROPDOWN (ESTILO SAAS)
   ========================================================================== */
.user-dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--color-destaques);
    object-fit: cover;
    transition: transform 0.2s ease;
}
.header-profile img:hover { transform: scale(1.05); }

/* ==========================================================================
   USER DROPDOWN - CORES DINÂMICAS E DESIGN SAAS
   ========================================================================== */

.user-dropdown-menu {
    position: absolute;
    top: 65px;
    right: 0;
    width: 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    display: none;
    z-index: 10001;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    animation: fadeInDropdown 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Exibição via JS */
.user-dropdown-menu.active { 
    display: block !important; 
}

/* Cabeçalho do Menu */
.dropdown-user-info {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fdfdfd;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-user-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    /* Destaque sutil com a cor de destaque do sistema */
    border: 2px solid var(--color-destaques); 
}

.dropdown-user-info strong {
    display: block;
    font-size: 15px;
    color: #333;
    line-height: 1.2;
}

.dropdown-user-info a {
    font-size: 12px;
    /* Link usa a cor primária dinâmica */
    color: var(--primary-color); 
    font-weight: 600;
    text-decoration: none;
}

.dropdown-user-info a:hover {
    text-decoration: underline;
}

/* Lista de Links */
.dropdown-links { 
    list-style: none; 
    padding: 10px 0; 
    margin: 0; 
}

.dropdown-links li a {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Ícones com a cor de destaque dinâmica */
.dropdown-links li a i { 
    width: 20px; 
    text-align: center; 
    color: var(--color-destaques); 
    font-size: 16px;
}

/* Hover inteligente: fundo sutil da cor secundária e texto na primária */
.dropdown-links li a:hover {
    background-color: var(--secondary-color);
    color: var(--secondary-color-contrast);
    padding-left: 25px; /* Efeito de slide suave */
}

/* Ícone no hover também muda para a cor de contraste */
.dropdown-links li a:hover i {
    color: var(--secondary-color-contrast);
}

/* Labels e Divisores */
.dropdown-links .divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

.dropdown-links .admin-label {
    padding: 12px 20px 6px;
    font-size: 10px;
    text-transform: uppercase;
    color: #bbb;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Botão de Sair com cor de alerta */
.dropdown-links li a.logout {
    color: #e74c3c;
}

.dropdown-links li a.logout i {
    color: #e74c3c;
}

.dropdown-links li a.logout:hover {
    background-color: #fff1f0;
    color: #c0392b;
}

/* Animação */
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* AJUSTE DE ALINHAMENTO DO AVATAR E ÍCONE */
.avatar-col {
    position: relative; /* Permite posicionar o ícone sobre/ao lado da foto */
    display: flex;
    align-items: center;
    min-width: 85px; /* Garante espaço para os dois elementos */
}

.status-read-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    background-color: var(--primary-color-contrast);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    position: absolute;
    left: -10px; /* Joga o ícone um pouco para fora para não esmagar a foto */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 2px solid #fff; /* Cria um destaque sobre o fundo */
}

.avatar-col img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px; /* Afasta a foto do ícone */
}

/* FONTES BOLD / REGULAR */
.culco-table-item.nao-lido .name-col,
.culco-table-item.nao-lido .date-col {
    font-weight: 900 !important;
    color: #000;
}

.culco-table-item.lido .name-col,
.culco-table-item.lido .date-col {
    font-weight: 400 !important;
    color: #666;
}

/* ESTADO LIDO DO ÍCONE */
.culco-table-item.lido .status-read-icon {
    background-color: #f0f0f0;
    color: #bbb;
    border-color: #f0f0f0;
}