/* =========================================================
   Light Theme
   ========================================================= */

html[data-bs-theme="light"] {

    /* =========================
       Brand / Primary
       ========================= */
    --primary-color: #666e42;
    --primary-hover: #7a824f;
    --primary-active: #5a6038;
    --on-primary-text: #ffffff;

    /* =========================
       Backgrounds
       ========================= */
    --light-primary-color: #ffffff;
    --background-color: #ffffff;
    --logo-background-color: #27282E;
    /* TODO: Implementar gradiente em diagonal (90º) de #27282E para #373737 */
    --list-bar-background-color: #7a824f;
    --list-bar-text-color: #27282E;

    /* =========================
       Text
       ========================= */
    --text-color: #6d767e;
    --heading-color: #EBEBEB;

    /* =========================
       UI
       ========================= */
    --border-color: #cccccc;
    --divider-color: #eeeeee;

    --ct-menu-bg: #f8f9fa!important;
    --navbar-light-color: #373737;
    --sidebar-light-color: #27282E;
    --sidebar-dark-accent: #666e42;
    /* TODO: Implementar cor de background #373c44 para submenus do sidebar */
}

/* =========================================================
   Base
   ========================================================= */

* {
    outline: none !important;
    box-sizing: border-box;
}

body {
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: var(--text-color);
}

/* =========================================================
   Sidebar
   ========================================================= */

html[data-bs-theme="light"] .leftside-menu,
html[data-bs-theme="light"] .side-nav .side-nav-link,
html[data-bs-theme="light"] .side-nav-title,
html[data-bs-theme="light"] .side-nav-item.menuitem-active > .active,
html[data-bs-theme="light"] .side-nav-item > .collapse > .side-nav-second-level,
html[data-bs-theme="light"] .side-nav-item > .side-nav-link {
    background-color: var(--sidebar-light-color) !important;
    color: #ffffff !important;
}

html[data-bs-theme="light"] .side-nav-second-level,
html[data-bs-theme="light"] .side-nav-second-level .side-nav-item {
    background-color: var(--sidebar-light-color) !important;
}

html[data-bs-theme="light"] .side-nav-second-level .side-nav-item a {
    color: rgba(255, 255, 255, 0.85) !important;
    background-color: var(--sidebar-light-color) !important;
}

html[data-bs-theme="light"] .side-nav-item > .side-nav-link:hover,
html[data-bs-theme="light"] .side-nav-item > .side-nav-link.active {
    background-color: var(--sidebar-dark-accent) !important;
    color: #ffffff !important;
    font-weight: 700;
}

html[data-bs-theme="light"] .side-nav-second-level .side-nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

html[data-bs-theme="light"] .side-nav-second-level .side-nav-item a.active {
    background-color: var(--sidebar-dark-accent) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* =========================================================
   Topbar
   ========================================================= */

html[data-bs-theme="light"] .topbar.container-fluid,
html[data-bs-theme="light"] .dropdown > .nav-link {
    background-color: var(--navbar-light-color) !important;
    color: var(--heading-color) !important;
    border: none;
}

html[data-bs-theme="light"] .button-toggle-menu,
html[data-bs-theme="light"] .button-toggle-menu .mdi-menu {
    color: var(--heading-color) !important;
}

html[data-bs-theme="light"] .topbar #user-name,
html[data-bs-theme="light"] .topbar h5,
html[data-bs-theme="light"] .topbar h6 {
    color: var(--heading-color) !important;
}

html[data-bs-theme="light"] .topbar .d-lg-flex span,
html[data-bs-theme="light"] .topbar .d-lg-flex h5,
html[data-bs-theme="light"] .topbar .d-lg-flex h6 {
    color: var(--heading-color) !important;
}

/* =========================================================
   Logos / Header
   ========================================================= */

html[data-bs-theme="light"] .leftside-menu-header,
html[data-bs-theme="light"] .logo.logo-light {
    background: linear-gradient(to right, #27282e 70%, #3f3e3e 100%) !important;
    border: none;
}

html[data-bs-theme="light"] .logo.logo-light-2 {
    border-bottom: 1px solid var(--divider-color) !important;
}

html[data-bs-theme="light"] .profilelogo {
    background-color: var(--background-color);
    border: 1px solid var(--divider-color);
}

/* =========================================================
   Cards
   ========================================================= */

html[data-bs-theme="light"] .card.card-body {
    border: 1px solid var(--border-color);
    background-color: var(--background-color) !important;
}

/* =========================================================
   List Bar
   ========================================================= */

html[data-bs-theme="light"] .list-bar-2 {
    background-color: var(--list-bar-background-color);
    border: 1px solid var(--background-color);
    border-radius: 4px;
}

html[data-bs-theme="light"] .list-bar-2 > button {
    background-color: var(--light-primary-color);
    color: var(--list-bar-text-color);
    border: none!important;
    font-weight: 600;
}

html[data-bs-theme="light"] .list-bar-2 > button:hover {
    background-color: var(--light-primary-color);
    opacity: 0.8;
}

html[data-bs-theme="light"] .list-bar-2 > button:active {
    background-color: var(--light-primary-color);
    opacity: 0.8;
}

/* =========================================================
   Buttons (Primary / Orange)
   ========================================================= */

html[data-bs-theme="light"] .btn-orange,
html[data-bs-theme="light"] .btn-warning,
html[data-bs-theme="light"] .btn-primary,
html[data-bs-theme="light"] button[style*="background-color: #FF9D5C"],
html[data-bs-theme="light"] button[style*="background-color: #ff9d5c"] {

    background: linear-gradient(
        to bottom,
        var(--primary-hover),
        var(--primary-color)
    ) !important;

    border-color: var(--primary-active) !important;
    color: var(--on-primary-text) !important;

    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

html[data-bs-theme="light"] .btn-orange:hover,
html[data-bs-theme="light"] .btn-primary:hover {

    background: linear-gradient(
        to bottom,
        var(--primary-color),
        var(--primary-active)
    ) !important;
}

html[data-bs-theme="light"] .btn-orange:active,
html[data-bs-theme="light"] .btn-primary:active {
    background-color: var(--primary-active) !important;
}

/* =========================================================
   End
   ========================================================= */
