@charset "UTF-8";

/* ============================================================
   VP-HEADER.CSS — Vektro Dashboard Navigation & Drawer Styles
   Applies to: _body_header3.blade.php
   ============================================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --vp-primary: #802e30;
    --vp-primary-light: #a8354a;
    --vp-primary-rgb: 128, 46, 48;
    --vp-primary-bg: #f9e0e0;
    --vp-bg: #f5f6fa;
    --vp-white: #ffffff;
    --vp-text-dark: #232d42;
    --vp-text-muted: #8a92a6;
    --vp-border: #e9ecef;
    --vp-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
    --vp-shadow-md: 0 0.375rem 1rem rgba(0, 0, 0, 0.1);
    --vp-radius: 0.5rem;
    --vp-radius-sm: 0.25rem;
    --vp-font: "Inter", sans-serif;
}

/* ============================================
   TOP NAVIGATION BAR
   ============================================ */
.vp-topnav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--vp-white);
    border-bottom: 1px solid var(--vp-border);
    box-shadow: var(--vp-shadow);
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand / Logo */
.vp-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.vp-brand a {
    display: flex;
    align-items: center;
}

/* ============================================
   PRIMARY NAV TABS (Horizontal Menu)
   ============================================ */
.vp-nav-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.vp-nav-item {
    position: relative;
}

.vp-nav-tabs .vp-nav-item > a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4b5675;
    border-radius: var(--vp-radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.vp-nav-tabs .vp-nav-item > a .vp-arrow {
    font-size: 0.72rem;
    opacity: 0.5;
    transition: transform 0.2s ease;
}

.vp-nav-tabs .vp-nav-item:hover > a {
    background: #f9e0e0;
    color: #802e30;
}

.vp-nav-tabs .vp-nav-item:hover > a .vp-arrow {
    opacity: 0.8;
    transform: rotate(180deg);
}

/* Active tab state */
.vp-nav-tabs .vp-nav-item > a.vp-tab-active,
.vp-nav-tabs .vp-nav-item > a.dual-horizontal-active {
    background: var(--vp-primary-bg);
    color: var(--vp-primary);
}

/* ============================================
   DROPDOWN — LEVEL 1 (Simple List)
   ============================================ */
.vp-dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 210px;
    background: var(--vp-white);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    box-shadow: var(--vp-shadow-md);
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1040;
}

.vp-has-dropdown:hover > .vp-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vp-dropdown > a {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: #4b5675;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.vp-dropdown > a:hover {
    background: #f9e0e0;
    color: #802e30;
}

.vp-dropdown > a.active {
    background: var(--vp-primary-bg);
    color: var(--vp-primary);
    font-weight: 500;
}

/* ============================================
   MEGA DROPDOWN — 2-COLUMN GRID
   ============================================ */
.vp-mega-dropdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 400px;
    padding: 0.6rem 0;
    gap: 0;
}

.vp-mega-col {
    padding: 0 0.2rem;
}

.vp-mega-col + .vp-mega-col {
    border-left: 1px solid var(--vp-border);
}

.vp-mega-title {
    padding: 0.35rem 1rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--vp-text-dark);
    margin: 0;
}

.vp-mega-col > a {
    display: block;
    padding: 0.38rem 1rem;
    font-size: 0.79rem;
    font-weight: 400;
    color: #4b5675;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.vp-mega-col > a:hover {
    background: #f9e0e0;
    color: #802e30;
}

.vp-mega-col > a.active {
    background: var(--vp-primary-bg);
    color: var(--vp-primary);
    font-weight: 500;
}

/* ============================================
   RIGHT NAV ACTIONS
   ============================================ */
.vp-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.vp-nav-actions .vp-nav-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--vp-text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    position: relative;
    text-decoration: none;
}

.vp-nav-actions .vp-nav-icon:hover {
    background: var(--vp-bg);
    color: var(--vp-primary);
}

.vp-nav-actions .vp-nav-icon svg {
    transition: fill 0.2s ease;
}

.vp-notification-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #cc2936;
    border-radius: 50%;
    border: 2px solid var(--vp-white);
}

/* ============================================
   DRAWER OVERLAY
   ============================================ */
.vp-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: block;
}

.vp-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   SIDE DRAWER
   ============================================ */
.vp-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 310px;
    height: 100vh;
    background: var(--vp-white);
    z-index: 1060;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.vp-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.vp-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--vp-border);
    flex-shrink: 0;
}

.vp-drawer-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.vp-drawer-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--vp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vp-drawer-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vp-text-dark);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.vp-drawer-name:hover {
    color: var(--vp-primary);
}

.vp-drawer-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    border: 1px solid var(--vp-border);
    background: transparent;
    color: var(--vp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vp-drawer-close:hover {
    background: var(--vp-bg);
    color: var(--vp-text-dark);
    border-color: #c4c9d4;
}

/* Drawer Body */
.vp-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 1.25rem;
    scrollbar-gutter: stable;
}

.vp-drawer-body::-webkit-scrollbar {
    width: 5px;
}

.vp-drawer-body::-webkit-scrollbar-thumb {
    background: #c4c9d4;
    border-radius: 20px;
}

.vp-drawer-body::-webkit-scrollbar-thumb:hover {
    background: #9199a6;
}

.vp-drawer-section {
    margin-bottom: 1.15rem;
}

.vp-drawer-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--vp-text-dark);
    margin: 0 0 0.35rem 0;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--vp-border);
}

.vp-drawer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--vp-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.vp-drawer-link::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--vp-primary);
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.vp-drawer-link:hover {
    color: var(--vp-primary-light);
}

.vp-drawer-link:hover::before {
    background: var(--vp-primary-light);
}

.vp-drawer-link.active {
    color: var(--vp-primary);
    font-weight: 600;
}

/* Drawer Footer */
.vp-drawer-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--vp-border);
    flex-shrink: 0;
}

.vp-btn-logout {
    display: inline-block;
    padding: 0.48rem 1.5rem;
    font-family: var(--vp-font);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--vp-primary);
    border: none;
    border-radius: var(--vp-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.vp-btn-logout:hover {
    background: var(--vp-primary-light);
    box-shadow: 0 2px 8px rgba(var(--vp-primary-rgb), 0.3);
    color: #fff;
}

/* ============================================
   LANGUAGE SWITCHER (in drawer header)
   ============================================ */
.vp-lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--vp-radius-sm);
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.vp-lang-switcher:hover {
    background: var(--vp-bg);
}

.vp-lang-switcher svg {
    fill: var(--vp-text-muted);
    transition: fill 0.2s ease;
}

.vp-lang-switcher:hover svg {
    fill: var(--vp-primary);
}

.vp-lang-form {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 110px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1070;
}

.vp-lang-switcher:hover .vp-lang-form {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vp-lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--vp-white);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius-sm);
    box-shadow: var(--vp-shadow-md);
    overflow: hidden;
}

.vp-lang-item {
    padding: 7px 12px;
    font-size: 0.78rem;
    color: var(--vp-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.vp-lang-item:hover {
    background: var(--vp-bg);
}

.vp-lang-item.vp-lang-active {
    background: var(--vp-primary);
    color: #fff;
}

/* ============================================
   DASHBOARD BODY — SECTION ROWS & CARDS
   ============================================ */

/* Section row — 2-column flex layout */
.vp-section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 15px 20px;
    background-color: var(--vp-white);
    border: 1px solid var(--vp-border);
    transition: box-shadow 0.3s ease;
}

.vp-section-row + .vp-section-row {
    margin-top: 10px;
}

.vp-section-col {
    flex: 1 1 calc(50% - 1rem);
    min-width: 240px;
}

.vp-section-title {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--vp-text-muted);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

.vp-section-title strong {
    font-weight: 700;
    color: var(--vp-text-dark);
    text-transform: uppercase;
}

/* Cards grid — default 3-col, optional 4-col */
.vp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.vp-cards-grid.vp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Card */
.vp-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.6rem;
    background: var(--vp-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--vp-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    color: inherit;
}

.vp-card:hover {
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.vp-card-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--vp-text-dark);
    line-height: 1.3;
}

.vp-grid-4 .vp-card-label {
    font-size: 0.7rem;
}

.vp-card-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.vp-card:hover .vp-card-icon {
    opacity: 1;
}

/* Disabled/stub cards */
.vp-card-disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .vp-nav-tabs .vp-nav-item > a {
        padding: 0.4rem 0.65rem;
        font-size: 0.77rem;
    }

    .vp-mega-dropdown {
        min-width: 340px;
    }
}

@media (max-width: 992px) {
    .vp-nav-tabs {
        display: none;
    }

    .vp-topnav {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .vp-topnav {
        padding: 0 0.75rem;
    }
}

.vp-st2 {
    fill-rule: evenodd;
    clip-rule: evenodd;
    fill: #802e30;
}

/* ── Slim Select2 — dashboard customer selector ── */
.select2-container--default .select2-selection--single {
    height: 34px;
    border: 1px solid #e2e5ec;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 29px;
    padding-left: 10px;
    font-size: 0.78rem;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #232d42;
    text-transform: none;
    letter-spacing: 0;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: #8a92a6;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 34px;
    width: 26px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: #aab0be transparent transparent;
    border-width: 5px 4px 0;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus
    .select2-selection--single {
    border-color: #862633;
    box-shadow: 0 0 0 3px rgba(134, 38, 51, 0.09);
    outline: none;
}

.select2-container--default.select2-container--open
    .select2-selection--single
    .select2-selection__arrow
    b {
    border-color: transparent transparent #862633;
    border-width: 0 4px 5px;
}

/* Kill Bootstrap's blue focus on the underlying select element */
.select2-container + select:focus,
.select2-hidden-accessible:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Dropdown panel */
.select2-dropdown {
    border: 1px solid #e2e5ec;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    font-family: "Inter", sans-serif;
    overflow: hidden;
    margin-top: 3px;
}

.select2-container--default .select2-search--dropdown {
    padding: 8px 8px 4px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 6px 10px;
    font-size: 0.75rem;
    font-family: "Inter", sans-serif;
    border: 1px solid #e2e5ec;
    border-radius: 5px;
    outline: none;
    color: #232d42;
    transition: border-color 0.2s ease;
}

.select2-container--default
    .select2-search--dropdown
    .select2-search__field:focus {
    border-color: #862633;
    box-shadow: none;
}

/* Options */
.select2-container--default .select2-results__option {
    padding: 7px 12px;
    font-size: 0.78rem;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #4b5675;
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.12s ease;
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background: #f9e0e0 !important;
    color: #802e30 !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: #f9e0e0;
    color: #802e30;
    font-weight: 500;
}

.select2-results__options {
    max-height: 220px;
    overflow-y: auto;
}

.select2-results__options::-webkit-scrollbar {
    width: 4px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #dce0e8;
    border-radius: 4px;
}
