/* ============================================================
   MaxFarm ERP - Overrides do tema ArchitectUI
   ============================================================ */

/* ---------- Logo / marca do app ---------- */
.app-header__logo .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, #3f6ad8, #6cb2eb);
    color: #ffffff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.brand-icon i {
    font-size: 1.1rem;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #343a40;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.app-header__logo .brand {
    width: 100%;
}

/* ---------- Conteúdo ---------- */
.app-main {
    font-size: 13.5px;
}

.app-main h1,
.app-main .h1 {
    font-size: 1.35rem;
}

.app-main h2,
.app-main .h2 {
    font-size: 1.2rem;
}

.app-main h3,
.app-main .h3 {
    font-size: 1.1rem;
}

.app-main .card {
    border-radius: 0.375rem;
}

/* ---------- DataTables ---------- */
.table.dataTable {
    width: 100% !important;
    font-size: 13.5px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    font-size: 12.5px;
}

/* ---------- Select2 ---------- */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
}

/* ---------- Scroll da sidebar (menu) ---------- */
.app-sidebar .scrollbar-sidebar {
    height: 100%;
    overflow-y: auto;
}

.scrollbar-sidebar::-webkit-scrollbar {
    width: 6px;
}

.scrollbar-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 3px;
}

.scrollbar-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.app-container.app-theme-dark .scrollbar-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
}

.app-container.app-theme-dark .scrollbar-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ---------- Avatar do usuário ---------- */
.avatar-initial {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #3f6ad8;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ---------- Modo escuro (tema claro do ArchitectUI + data-bs-theme) ---------- */
.app-container.app-theme-dark {
    background: #0f172a;
}

.app-container.app-theme-dark .app-header {
    background: #1e293b;
}

.app-container.app-theme-dark .app-header .app-header__logo {
    background: rgba(30, 41, 59, 0.1);
}

.app-container.app-theme-dark .app-header .brand-text,
.app-container.app-theme-dark .app-sidebar .brand-text {
    color: #f1f5f9;
}

.app-container.app-theme-dark .app-sidebar {
    background: #0f172a;
}

.app-container.app-theme-dark .app-sidebar .app-sidebar__heading {
    color: #8ab4f8;
}

.app-container.app-theme-dark .app-sidebar .vertical-nav-menu li a {
    color: #cbd5e1;
}

.app-container.app-theme-dark .app-sidebar .vertical-nav-menu li a:hover,
.app-container.app-theme-dark .app-sidebar .vertical-nav-menu li a.mm-active {
    background: rgba(63, 106, 216, 0.22);
    color: #93b4ff;
}

.app-container.app-theme-dark .app-sidebar .vertical-nav-menu ul > li > a {
    color: #94a3b8;
}

.app-container.app-theme-dark .app-sidebar .vertical-nav-menu ul > li > a:hover {
    color: #93b4ff;
}

.app-container.app-theme-dark .app-main__outer,
.app-container.app-theme-dark .app-main__inner {
    background: #0f172a;
}

.app-container.app-theme-dark .app-page-title {
    background: transparent;
}

.app-container.app-theme-dark .app-footer .app-footer__inner {
    background: #1e293b;
    color: #94a3b8;
}

.app-container.app-theme-dark .card {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.app-container.app-theme-dark .card .card-header,
.app-container.app-theme-dark .card .card-footer {
    background-color: #16213a;
    border-color: #334155;
}

.app-container.app-theme-dark .header-user-info .widget-heading {
    color: #f1f5f9;
}

.app-container.app-theme-dark .header-user-info .widget-subheading {
    color: #94a3b8;
}

.app-container.app-theme-dark .app-header-left .header-menu .nav-link {
    color: #cbd5e1;
}
