/* ============================================================
   omega-tabler.css
   Overrides do Tabler para identidade visual do OMEGA - Admin
   ============================================================ */

:root {
    --tblr-primary:        #066fd1;
    --tblr-primary-rgb:    6, 111, 209;
    --tblr-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ------------------------------------------------------------
   Sidebar (navbar-vertical)
   ------------------------------------------------------------ */
.navbar-vertical {
    --tblr-bg-surface: #1a2236;
    width: 15rem;
    min-width: 15rem;
}
.navbar-vertical .navbar-brand-image {
    max-height: 40px;
    width: auto;
}
.navbar-vertical .nav-link {
    padding: 0.55rem 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0.375rem;
    margin: 0 0.5rem;
    width: auto;
}
.navbar-vertical .nav-link-icon {
    width: 1.25rem;
    min-width: 1.25rem;
    text-align: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.navbar-vertical .nav-link-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.navbar-vertical .nav-item.mt-auto {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto !important;
    padding-top: 0.5rem;
    margin-top: auto !important;
}
.navbar-vertical .navbar-nav {
    flex: 1;
}
.navbar-vertical .navbar-nav > .nav-item.dropdown .dropdown-menu {
    position: static !important;
    float: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 1.25rem;
    margin: 0;
}
.navbar-vertical .dropdown-menu .dropdown-item {
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0.25rem;
}
.navbar-vertical .dropdown-menu .dropdown-item:hover,
.navbar-vertical .dropdown-menu .dropdown-item:focus {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.navbar-vertical .dropdown-toggle::after {
    margin-left: auto;
}

/* ------------------------------------------------------------
   Avatar
   ------------------------------------------------------------ */
.avatar-sm {
    --tblr-avatar-size: 2rem;
}

/* ------------------------------------------------------------
   Card
   ------------------------------------------------------------ */
.card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    border: 1px solid var(--tblr-border-color);
}

/* ------------------------------------------------------------
   Theme toggle
   ------------------------------------------------------------ */
#btnToggleTheme { color: inherit; }

/* ------------------------------------------------------------
   Page wrapper
   ------------------------------------------------------------ */
.page-wrapper {
    background: var(--tblr-body-bg);
    min-height: 100vh;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn-primary {
    --tblr-btn-bg: #066fd1;
    --tblr-btn-border-color: #066fd1;
    --tblr-btn-hover-bg: #055ab0;
}

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */
.table thead th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--tblr-secondary-color);
    background: var(--tblr-bg-surface-secondary);
}

/* ------------------------------------------------------------
   Dark theme overrides
   ------------------------------------------------------------ */
[data-bs-theme="dark"] {
    --tblr-secondary-color: #e8eaed;
}

[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .subheader,
[data-bs-theme="dark"] .page-pretitle {
    color: #e8eaed !important;
}

[data-bs-theme="dark"] .table thead th {
    color: #e8eaed !important;
}

[data-bs-theme="dark"] .navbar-vertical .text-secondary {
    color: rgba(255,255,255,0.7) !important;
}
