/* ======================================================
   🎨 IDENTIDADE VISUAL – SAASFX
====================================================== */
:root {
    --bg-main: #071c24;
    --bg-top: linear-gradient(90deg, #0b3c49, #021d24);
    --bg-sidebar: linear-gradient(180deg, #0c2b36, #071820);

    --accent: #0b3ea8;
    --accent-hover: #1fa2ff;
    --accent-orange: #ff8c1a;


    --text-main: #e9f1f5;
    --text-muted: rgba(255,255,255,.65);
}

/* ======================================================
   🌍 BODY
====================================================== */
body {
    margin: 0;
    background: radial-gradient(circle at top, #0c2531, #05141b);
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-main);
}


/* ======================================================
   🔝 TOP BAR
====================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 56px;
    width: 100%;
    background: var(--bg-top);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,.45);
}

.system-title {
    font-weight: 700;
    letter-spacing: .5px;
}

.user-info {
    position: absolute;
    right: 20px;
    text-align: right;
}

.empresa-nome {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-orange);
}

.usuario-nome {
    font-size: 12px;
    color: var(--text-muted);
}

/* ======================================================
   📂 SIDEBAR
====================================================== */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    width: 240px;
    height: calc(100vh - 56px);
    background: var(--bg-sidebar);
    padding: 15px;
    overflow-y: auto;
    transition: all .3s ease;
}

.sidebar h4 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 15px;
}

.sidebar a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    transition: all .25s ease;
}

.sidebar a i {
    width: 22px;
    text-align: center;
    margin-right: 10px;
}

.sidebar a:hover {
    background: rgba(0,255,180,.18);
    color: #fff;
}

/* ======================================================
   📁 CATEGORIAS
====================================================== */
.sidebar-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    margin-top: 6px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    background: rgba(255,255,255,.06);
}

.sidebar-category:hover,
.sidebar-category.active {
    background: rgba(0,255,180,.22);
}

.sidebar-submenu {
    display: none;
    margin-left: 8px;
}

.sidebar-submenu a {
    font-size: 14px;
    padding-left: 28px;
}

/* ======================================================
   🧠 BOTÃO TOGGLE
====================================================== */
.toggle-sidebar-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #003b32;
    font-size: 18px;
    z-index: 1100;
    cursor: pointer;
}

/* ======================================================
   📦 CONTEÚDO
====================================================== */
.content {
    margin-left: 260px;
    margin-top: 70px;
    padding: 20px;
}

/* ======================================================
   🔁 SIDEBAR OCULTA
====================================================== */
body.hide-sidebar .sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
}

body.hide-sidebar .content {
    margin-left: 0;
}

/* ======================================================
   📊 TABELAS
====================================================== */
.table {
    background: rgba(255,255,255,.05);
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(90deg, #004766, #006d8f);
    color: #fff;
}

/* Cada TH com verde (menos brilho) */
.table thead th {
    background: linear-gradient(
        180deg,
        rgba(0, 235, 170, 0.85),
        rgba(0, 185, 145, 0.85)
    );
    color: #003b32;
    font-weight: 700;
    border: none;
    padding: 12px 10px;
}

/* Arredonda cantos superiores */
.table thead th:first-child {
    border-top-left-radius: 14px;
}

.table thead th:last-child {
    border-top-right-radius: 14px;
}

/* ======================================================
   ✍️ INPUTS
====================================================== */
.form-control,
.form-select {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0,255,180,.25);
}

/* ======================================================
   🔽 SELECT2
====================================================== */
.select2-container--default .select2-selection--single {
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff;
}

/* ======================================================
   ✍️ INPUTS CLAROS COM PROFUNDIDADE (REFINO UX)
====================================================== */

/* Inputs, selects e buscas */
.form-control,
.form-select,
input[type="text"],
input[type="search"],
input[type="date"],
input[type="number"],
select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;

    /* profundidade */
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    transition: all 0.2s ease;
}

/* Placeholder */
.form-control::placeholder,
input::placeholder {
    color: #64748b;
}

/* Foco (UX forte) */
.form-control:focus,
.form-select:focus,
input:focus,
select:focus {
    background: #ffffff !important;
    border-color: #00ffb4;
    outline: none;

    box-shadow:
        0 0 0 2px rgba(0, 255, 180, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Campos desabilitados */
.form-control:disabled,
.form-select:disabled {
    background: #f1f5f9 !important;
    color: #64748b !important;
    cursor: not-allowed;
}

/* ======================================================
   🔽 SELECT2 – versão clara
====================================================== */
.select2-container--default .select2-selection--single {
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    height: 42px;
    display: flex;
    align-items: center;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.select2-selection__rendered {
    color: #0f172a !important;
}

.select2-container--open .select2-selection--single {
    border-color: #00ffb4 !important;
    box-shadow:
        0 0 0 2px rgba(0, 255, 180, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ======================================================
   🔍 INPUT DE PESQUISA (destaque leve)
====================================================== */
input[type="search"] {
    border-left: 4px solid #00ffb4;
}



/* ======================================================
   🚨 ALERTAS
====================================================== */
.alert {
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #fff;
}

/* ======================================================
   📱 RESPONSIVO
====================================================== */
@media (max-width: 768px) {
    .content {
        margin-left: 0;
    }

    .sidebar {
        width: 220px;
    }
}

/* ======================================================
   🏠 HOME – LOGO CENTRALIZADA
====================================================== */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-logo {
    max-width: 512px;
    width: 100%;
    height: auto;
    margin: 0 auto 24px auto; /* 👈 garante centro */
    display: block;
    filter: drop-shadow(0 0 5px rgba(0, 255, 180, 0.35));
}



/* ======================================================
   📊 TABELA – DIVISÕES VISÍVEIS (SEM POLUIR)
====================================================== */

/* Linhas verticais no cabeçalho */
.table thead th {
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

/* Remove a borda da última coluna */
.table thead th:last-child {
    border-right: none;
}

/* Linhas do corpo da tabela */
.table td {
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* Remove última borda direita */
.table td:last-child {
    border-right: none;
}


.td-texto-longo {
  max-width: 220px;          /* limite da coluna */
  word-break: break-all;     /* quebra email grande */
  white-space: normal;
  font-size: 13px;
}

.table td {
  vertical-align: middle;
  padding-top: 6px;
  padding-bottom: 6px;
}

.acoes-cell {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start; /* ou flex-start se preferir */
  height: 100%;
}

/* ===============================
   CARD DE FILTROS
   =============================== */
.filtros-card {
    background-color: #ffffff;
    color: #212529;
}

/* Inputs dentro do filtro */
.filtros-card .form-control,
.filtros-card .form-select {
    background-color: #ffffff;
    color: #212529;
}

/* Labels */
.filtros-card label {
    color: #495057;
}
