/* ========================================
   Variáveis de Cores - Weduu Theme
   ======================================== */
:root {
    /* Cores Primárias Weduu */
    --weduu-primary: #ffa268;        /* Laranja principal do logo */
    --weduu-primary-dark: #fe8134;   /* Laranja escuro */
    --weduu-primary-light: #FFB366;  /* Laranja claro */
    
    /* Cores Secundárias */
    --weduu-secondary: #2C3E50;      /* Azul escuro */
    --weduu-secondary-light: #34495E; /* Azul médio */
    
    /* Cores Neutras */
    --weduu-light: #F5F5F5;          /* Fundo claro */
    --weduu-white: #FFFFFF;          /* Branco */
    --weduu-dark: #1C2833;           /* Preto escuro */
    
    /* Gradiente Primário */
    --weduu-gradient-primary: linear-gradient(135deg, var(--weduu-primary) 0%, var(--weduu-primary-dark) 100%);
    
    /* Bootstrap CSS Variables Override */
    --bs-primary: var(--weduu-primary);
    --bs-primary-rgb: 255, 140, 66;
    --bs-secondary: var(--weduu-secondary);
    --bs-light: var(--weduu-light);
}

/* Fallback para cards de empresa sem skin próprio */
.skin-default {
    --card-accent: linear-gradient(90deg, #9e9e9e 0%, #bdbdbd 100%);
    --card-border-hover: #9e9e9e;
}

/* ========================================
   Botões Primários com Gradiente
   ======================================== */
.btn-primary {
    background: var(--weduu-gradient-primary);
    border: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.25);
}

.btn-primary:hover {
    background: var(--weduu-gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 66, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* ========================================
   Botões Outline Primary
   ======================================== */
.btn-outline-primary {
    color: var(--weduu-primary);
    border-color: var(--weduu-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--weduu-gradient-primary);
    border-color: transparent;
    color: var(--weduu-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.3);
}

/* ========================================
   Cards com Gradiente Primary
   ======================================== */
.card-header {
    border-radius: 12px 12px 0 0;
    background: var(--weduu-gradient-primary);
    border: none;
    padding: 1.25rem;
    font-weight: 600;
    color: var(--weduu-white);
}

.card-header.bg-primary {
    background: var(--weduu-gradient-primary) !important;
}

.badge.bg-primary {
    background: var(--weduu-gradient-primary) !important;
}

/* ========================================
   Backgrounds Primários
   ======================================== */
.bg-primary {
    background: var(--weduu-gradient-primary) !important;
}

.text-bg-primary {
    background: var(--weduu-gradient-primary) !important;
}

/* ========================================
   Navbar Customizada
   ======================================== */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--weduu-primary) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--weduu-primary-dark) !important;
    transform: scale(1.05);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--weduu-primary);
}

.dropdown-item:hover {
    background-color: var(--weduu-light);
    color: var(--weduu-primary);
}

/* ========================================
   Inputs e Forms
   ======================================== */
.form-control {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--weduu-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--weduu-secondary);
    margin-bottom: 0.5rem;
}

/* ========================================
   Alerts
   ======================================== */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #28A745;
    background-color: rgba(40, 167, 69, 0.1);
}

.alert-danger {
    border-left-color: #DC3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.alert-warning {
    border-left-color: #FFC107;
    background-color: rgba(255, 193, 7, 0.1);
}

.alert-info {
    border-left-color: var(--weduu-primary);
    background-color: rgba(255, 140, 66, 0.1);
}

/* ========================================
   Badges
   ======================================== */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--weduu-primary) 0%, var(--weduu-primary-dark) 100%) !important;
}

/* ========================================
   Links
   ======================================== */
a {
    color: var(--weduu-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--weduu-primary-dark);
    text-decoration: underline;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
    background-color: var(--weduu-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.breadcrumb-item.active {
    color: var(--weduu-primary);
    font-weight: 500;
}

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

.breadcrumb-item a:hover {
    color: var(--weduu-primary-dark);
}

/* ========================================
   Texto Customizado
   ======================================== */
.text-primary {
    color: var(--weduu-primary) !important;
}

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

/* ========================================
   Animações
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.4s ease-out;
}

/* ========================================
   Dashboard Cards — Hover
   ======================================== */
.dashboard-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* ========================================
   Borders
   ======================================== */
.border-primary {
    border-color: var(--weduu-primary) !important;
}

.border-secondary {
    border-color: var(--weduu-secondary) !important;
}

/* ========================================
   Tabela de Validação — estilos inline
   ======================================== */

/* Grupos de colunas */
.col-group-1 { background-color: #f0f6ff; }
.col-group-2 { background-color: #f3fbf5; }

thead th.col-group-1 { background-color: #eaf2ff !important; }
thead th.col-group-2 { background-color: #eaf8ef !important; }

.table tbody tr:hover td.col-group-1 { background-color: #e6f0ff; }
.table tbody tr:hover td.col-group-2 { background-color: #e8f8ee; }

td.col-group-border-end,
th.col-group-border-end { box-shadow: 2px 0 0 0 #c8daf0; }

/* Badge canal */
.badge-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 24px;
    padding: 0 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 50rem;
}

/* Badge de largura fixa (colunas Role e Status da listagem de usuários) */
.badge-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    white-space: nowrap;
}

/* Linha desabilitada */
tr.row-disabled {
    opacity: 0.45;
    text-decoration: line-through;
}

/* Scroll com cabeçalho fixo */
.validacao-table-wrapper {
    max-height: calc(100vh - 340px);
    min-height: 200px;
    overflow: auto;
    position: relative;
}

.validacao-table-wrapper thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Filtro inline por coluna */
.col-filter-icon {
    font-size: 0.72rem;
    margin-left: 5px;
    cursor: pointer;
    color: #aaa;
    vertical-align: middle;
}
.col-filter-icon:hover,
.col-filter-icon.active { color: #0d6efd; }

.col-filter-box {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 500;
    width: 200px;
    background: #fff;
    border: 1px solid #dde2e8;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

