/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Theme
 *
 * This file allows you to customize the theme colors and styles for the entire Nexus template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* *****************************************************
    vPanel features section (homepage)
    Nguồn nội dung: https://vpanel.thueauto.com/features/
***************************************************** */
.vpanel-features {
    margin-bottom: 40px;
}
.vpanel-features-lead {
    max-width: 780px;
    margin: -12px auto 28px;
    color: var(--text-lifted);
}
.vpanel-feature {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    background-color: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.vpanel-feature:hover {
    border-color: var(--border);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    transform: translateY(-2px);
}
.vpanel-feature .vpanel-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    font-size: 1.35rem;
    color: var(--primary);
    background-color: var(--bg-muted);
    border-radius: var(--rounding-md);
}
.vpanel-feature .vpanel-feature-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}
.vpanel-feature ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.vpanel-feature ul li {
    position: relative;
    margin-bottom: 5px;
    padding-left: 15px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-lifted);
}
.vpanel-feature ul li:last-child {
    margin-bottom: 0;
}
.vpanel-feature ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--info);
}
.vpanel-features-cta {
    margin-top: 8px;
}
.vpanel-features-cta .btn {
    margin: 5px 4px 0;
}
@media (max-width: 767.98px) {
    .vpanel-features-cta .btn {
        display: block;
        width: 100%;
        margin-bottom: 8px;
    }
}

/* *****************************************************
    WEB FONTS — Quicksand (tiêu đề) + Montserrat (nội dung)
    File @font-face: assets/fonts/css/quicksand-montserrat.css
***************************************************** */
:root {
    --font-body: 'Montserrat', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Quicksand', 'Montserrat', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Nội dung, form, bảng, nút mặc định */
body,
input,
select,
textarea,
.form-control,
.dropdown-menu,
.popover,
.tooltip {
    font-family: var(--font-body);
}

/* Tiêu đề và các thành phần nổi bật */
h1, h2, h3, h4, h5, h6,
.navbar-brand,
.card-title,
.modal-title,
.panel-title,
.sidebar .card-title,
.vpanel-feature-title,
.accordion .card-header {
    font-family: var(--font-heading);
}

/* Menu điều hướng */
header.header .navbar-nav a {
    font-family: var(--font-heading);
}

/* Bỏ font Open Sans cũ ở popover thông báo */
.popover-user-notifications {
    font-family: var(--font-body);
}

/* *****************************************************
    HEADER / NAVBAR — màu thương hiệu
***************************************************** */
:root {
    --brand-navy: #0a1f44;
    --brand-blue: #155dfc;
    --brand-sky: #38bdf8;
}

/* Dải gradient mảnh trên cùng của header */
header.header {
    position: relative;
    padding-top: 4px;
}
header.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    pointer-events: none;
    background: linear-gradient(90deg, var(--brand-navy) 0%, var(--brand-blue) 55%, var(--brand-sky) 100%);
}

/* ---- Topbar (chỉ hiện khi đã đăng nhập) ---- */
header.header .topbar {
    background: linear-gradient(90deg, var(--brand-navy) 0%, #10306e 70%, var(--brand-blue) 100%);
    color: rgba(255, 255, 255, 0.78);
}
header.header .topbar .btn,
header.header .topbar .active-client .btn,
header.header .topbar .active-client .input-group-text {
    color: rgba(255, 255, 255, 0.78);
}
header.header .topbar .btn:hover,
header.header .topbar .btn:focus,
header.header .topbar .active-client .btn:hover,
header.header .topbar .active-client .btn:focus {
    color: #fff;
}
header.header .topbar .active-client .btn.btn-active-client span {
    border-bottom-color: rgba(255, 255, 255, 0.78);
}

/* ---- Dòng logo ---- */
header.header .navbar.navbar-light {
    background-color: #fff;
    border-bottom: 1px solid var(--border-muted);
    box-shadow: 0 4px 16px rgba(10, 31, 68, 0.06);
}

/* ---- Dòng menu chính (gradient) ---- */
header.header .navbar.main-navbar-wrapper {
    min-height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    background: linear-gradient(90deg, var(--brand-navy) 0%, #10306e 60%, var(--brand-blue) 100%);
    box-shadow: 0 6px 18px rgba(10, 31, 68, 0.18);
}
header.header .main-navbar-wrapper .navbar-nav {
    margin-top: 0;
    margin-bottom: 0;
    gap: 4px;
}
header.header .main-navbar-wrapper #nav {
    gap: 4px;
}
header.header .main-navbar-wrapper .navbar-nav > li > a {
    display: block;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
    background-color: transparent;
    border-radius: var(--rounding-md);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
header.header .main-navbar-wrapper .navbar-nav > li > a:hover,
header.header .main-navbar-wrapper .navbar-nav > li > a:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.14);
}
header.header .main-navbar-wrapper .nav-item.active > a,
header.header .main-navbar-wrapper .nav-item.show > a,
header.header .main-navbar-wrapper .navbar-nav > li > a[aria-current="page"] {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 -3px 0 var(--brand-sky);
}
header.header .main-navbar-wrapper .dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.2em;
    color: rgba(255, 255, 255, 0.7);
}
header.header .main-navbar-wrapper .nav-item.show > a::after,
header.header .main-navbar-wrapper .dropdown-toggle:hover::after {
    color: #fff;
}

/* ---- Dropdown menu ---- */
header.header .main-navbar-wrapper .dropdown-menu {
    padding: 8px;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    background-color: #fff;
    box-shadow: 0 14px 34px rgba(10, 31, 68, 0.16);
}
header.header .main-navbar-wrapper .dropdown-menu .dropdown-item,
header.header .main-navbar-wrapper .dropdown-menu .dropdown-item > a {
    color: var(--text);
    font-size: 0.95rem;
    border-radius: var(--rounding-sm);
}
header.header .main-navbar-wrapper .dropdown-menu li.dropdown-item {
    padding: 3px 4px;
}
header.header .main-navbar-wrapper .dropdown-menu li.dropdown-item > a.dropdown-item {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}
header.header .main-navbar-wrapper .dropdown-menu .dropdown-item:hover,
header.header .main-navbar-wrapper .dropdown-menu .dropdown-item:focus,
header.header .main-navbar-wrapper .dropdown-menu .dropdown-item:active {
    color: var(--brand-blue);
    background-color: rgba(21, 93, 252, 0.08);
}

/* ---- Nút ở góc phải (giỏ hàng, thông báo) ---- */
header.header .toolbar .nav-link {
    background-color: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    color: var(--text-lifted);
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
header.header .toolbar .nav-link:hover,
header.header .toolbar .nav-link:focus {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
    background-color: rgba(21, 93, 252, 0.06);
}
header.header .toolbar .nav-link .badge {
    background-color: var(--brand-blue) !important;
}

/* ---- Nút mở menu mobile ---- */
header.header .navbar .navbar-toggler {
    color: var(--brand-blue);
    border-color: var(--border);
}
header.header .navbar .navbar-toggler:hover,
header.header .navbar .navbar-toggler:focus {
    color: var(--brand-navy);
    background-color: rgba(21, 93, 252, 0.08);
    border-color: var(--brand-blue);
}

/* ---- Mobile: giữ một dải gradient mảnh khi menu đang đóng ---- */
@media (max-width: 1199.98px) {
    header.header .navbar.main-navbar-wrapper {
        min-height: 6px;
    }
}
