/*
 * theme-colors.css
 *
 * Central place to customize the color scheme of the backoffice2 application.
 * Edit the values below to change colors site-wide.
 *
 * Primary color   : used in buttons, active menu items, badges, links.
 * Secondary color : used in secondary buttons and accents.
 * Success color   : used in success alerts, badges and buttons.
 * Info color      : used in info alerts, badges and buttons.
 * Warning color   : used in warning alerts, badges and buttons.
 * Danger color    : used in error alerts, badges and buttons.
 *
 * Topbar / Header : background and border of the top navigation bar.
 * Sidebar / Menu  : background, item colors and active state of the side menu.
 * Topnav          : background and item colors of the horizontal top menu.
 * Footer          : background and text color of the footer bar.
 */

:root {
    /* ------------------------------------------------------------------ */
    /* Brand / semantic colors                                              */
    /* ------------------------------------------------------------------ */
    /* Grayscale theme: blacks, grays and whites */
    --vz-primary: #212529;
    --vz-primary-rgb:        33, 37, 41;

    --vz-secondary:          #6c757d;
    --vz-secondary-rgb:      108, 117, 125;

    --vz-success:            #0ab39c;
    --vz-success-rgb:        10, 179, 156;

    --vz-info:               #299cdb;
    --vz-info-rgb:           41, 156, 219;

    --vz-warning:            #f7b84b;
    --vz-warning-rgb:        247, 184, 75;

    --vz-danger:             #f06548;
    --vz-danger-rgb:         240, 101, 72;

    /* ------------------------------------------------------------------ */
    /* Top header bar                                                       */
    /* ------------------------------------------------------------------ */
    --vz-header-bg:          #000000;
    --vz-header-border:      rgba(255, 255, 255, 0.1);
    --vz-header-item-color:  #e9ecef;
    --vz-header-item-sub-color: rgba(233, 236, 239, 0.7);
    --vz-topbar-search-bg:   rgba(255, 255, 255, 0.1);
    --vz-topbar-search-color:#e9ecef;
    --vz-topbar-user-bg:     rgba(255, 255, 255, 0.1);

    /* ------------------------------------------------------------------ */
    /* Horizontal top navigation (topnav)                                   */
    /* ------------------------------------------------------------------ */
    --vz-topnav-bg:               #000000;
    --vz-topnav-item-color:       rgba(255, 255, 255, 0.7);
    --vz-topnav-item-active-color: #ffffff;

    /* ------------------------------------------------------------------ */
    /* Vertical sidebar menu                                                */
    /* ------------------------------------------------------------------ */
    --vz-vertical-menu-bg:                  #000000;
    --vz-vertical-menu-border:              rgba(255, 255, 255, 0.05);
    --vz-vertical-menu-item-color:          rgba(255, 255, 255, 0.6);
    --vz-vertical-menu-item-hover-color:    #ffffff;
    --vz-vertical-menu-item-active-color:   #ffffff;
    --vz-vertical-menu-item-active-bg:      rgba(255, 255, 255, 0.1);
    --vz-vertical-menu-item-bg:             rgba(255, 255, 255, 0.05);
    --vz-vertical-menu-sub-item-color:      rgba(255, 255, 255, 0.5);
    --vz-vertical-menu-sub-item-hover-color:#ffffff;
    --vz-vertical-menu-sub-item-active-color:#ffffff;
    --vz-vertical-menu-title-color:         rgba(255, 255, 255, 0.3);

    /* ------------------------------------------------------------------ */
    /* Footer                                                               */
    /* ------------------------------------------------------------------ */
    --vz-footer-bg:    #f3f6f9;
    --vz-footer-color: #98a6ad;

    /* ------------------------------------------------------------------ */
    /* Login / authentication screen                                        */
    /* ------------------------------------------------------------------ */
    --vz-auth-bg-start:    #212529;
    --vz-auth-bg-end:      #000000;
    --vz-auth-bg-opacity:  0.9;
}

/*
 * Login screen styling. Loaded on the auth layout via VelzonAsset so the
 * colors are centralized here (theme-colors.css) instead of being hard-coded
 * inline in the auth layout. This keeps the login consistent across every
 * environment/deployment.
 */
.auth-one-bg .bg-overlay {
    background: var(--vz-auth-bg-end);
    background: linear-gradient(to left, var(--vz-auth-bg-end), var(--vz-auth-bg-start));
    opacity: var(--vz-auth-bg-opacity);
}

/*
 * The Velzon template applies a dark sidebar (data-sidebar="dark") whose
 * variables are defined with a higher specificity selector
 * (:root[data-sidebar=dark]) in app.min.css. We re-declare them here with the
 * same selector so the grayscale (black) theme also applies to the side menu.
 */
:root[data-sidebar=dark] {
    --vz-vertical-menu-bg:                  #000000;
    --vz-vertical-menu-border:              #000000;
    --vz-vertical-menu-item-color:          rgba(255, 255, 255, 0.6);
    --vz-vertical-menu-item-hover-color:    #ffffff;
    --vz-vertical-menu-item-active-color:   #ffffff;
    --vz-vertical-menu-item-active-bg:      rgba(255, 255, 255, 0.1);
    --vz-vertical-menu-item-bg:             rgba(255, 255, 255, 0.05);
    --vz-vertical-menu-sub-item-color:      rgba(255, 255, 255, 0.5);
    --vz-vertical-menu-sub-item-hover-color:#ffffff;
    --vz-vertical-menu-sub-item-active-color:#ffffff;
    --vz-vertical-menu-title-color:         rgba(255, 255, 255, 0.3);
}
