/* -------------------------------------------------------------
 * GlobalMart Main Stylesheet
 * Custom CSS with Premium B2B Layout & Modern Interactions
 * ------------------------------------------------------------- */

/* --- CSS Variables & Design System --- */
:root {
    --primary-navy: #0b2545;
    --primary-navy-dark: #081d34;
    --primary-navy-light: #134074;
    --accent-orange: #f26a1b;
    --accent-orange-hover: #d5530b;
    --accent-orange-light: #fdf0e9;
    --secondary-blue: #00509d;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-color-focus: #cbd5e1;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Elevation / Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 120px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    border: 2px solid var(--accent-orange);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    border-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 106, 27, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-navy);
    transform: translateY(-2px);
}

/* --- Header & Navigation Styles --- */
.main-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Top Mini Nav Bar */
.top-nav-bar {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
    font-size: 0.85rem;
}

.top-nav-container {
    display: flex;
    justify-content: flex-end;
}

.top-nav {
    display: flex;
}

.top-nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    position: relative;
}

.top-nav-link:hover {
    color: var(--accent-orange);
}

.top-nav-link.active {
    color: var(--accent-orange);
    font-weight: 600;
}

.top-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background-color: var(--accent-orange);
}

/* Middle / Main Nav Bar */
.middle-nav-bar {
    padding: 0.85rem 0;
}

.middle-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.logo-svg {
    width: 50px;
    height: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.blue-text {
    color: var(--primary-navy);
}

.orange-text {
    color: var(--accent-orange);
}

.logo-tagline {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 2px;
}

.logo-tagline .divider {
    color: var(--accent-orange);
    font-weight: 800;
    margin: 0 2px;
}

/* Search Bar in Header */
.header-search-container {
    flex-grow: 1;
    max-width: 600px;
}

.header-search-form {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-light);
    transition: var(--transition-smooth);
}

.header-search-form:focus-within {
    border-color: var(--accent-orange);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(242, 106, 27, 0.15);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    background-color: var(--bg-white);
    padding-left: 0.75rem;
}

.search-icon-svg {
    width: 18px;
    height: 18px;
    color: var(--text-light);
}

.header-search-input {
    width: 100%;
    border: none;
    padding: 0.65rem 0.75rem;
    color: var(--text-dark);
}

.header-search-input::placeholder {
    color: var(--text-light);
}

.category-select-wrapper {
    border-left: 1px solid var(--border-color);
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
}

.header-category-select {
    border: none;
    background-color: transparent;
    padding: 0.65rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
}

.header-search-button {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.header-search-button:hover {
    background-color: var(--accent-orange-hover);
}

/* User Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-signin {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-signin:hover {
    color: var(--accent-orange);
}

.user-icon {
    width: 18px;
    height: 18px;
}

.btn-register {
    background-color: var(--accent-orange);
    color: var(--bg-white) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.btn-register:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
}

/* Hamburger mobile button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--primary-navy);
    transition: var(--transition-smooth);
}

/* --- Mobile Drawer --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-smooth);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.drawer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.mobile-nav-link.active {
    color: var(--accent-orange);
    font-weight: 600;
}

.drawer-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.mobile-nav-action-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.mobile-nav-action-link.register-highlight {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    padding: 0.65rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: block;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--primary-navy);
    background-image: radial-gradient(circle at 80% 20%, rgba(19, 64, 116, 0.4) 0%, transparent 60%);
    color: var(--bg-white);
    padding: 5rem 0 7.5rem 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    max-width: 580px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #b0c4de;
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-actions .btn {
    min-width: 170px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- Search & Tab Widget Section --- */
.search-widget-section {
    margin-top: -4.5rem;
    position: relative;
    z-index: 10;
}

.search-widget-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.widget-tabs {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0px;
    margin-bottom: 1.25rem;
}

.widget-tab {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.75rem 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: var(--transition-smooth);
}

.widget-tab:hover {
    color: var(--accent-orange);
}

.widget-tab.active {
    color: var(--accent-orange);
}

.widget-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--accent-orange);
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.tab-icon {
    width: 18px;
    height: 18px;
}

.widget-form-container {
    padding-top: 0.5rem;
}

.widget-search-form {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
}

.widget-input-group {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-light);
    transition: var(--transition-smooth);
}

.widget-input-group:focus-within {
    border-color: var(--accent-orange);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(242, 106, 27, 0.1);
}

.widget-field {
    width: 100%;
    border: none;
    background-color: transparent;
    padding: 0.95rem 1.25rem;
    color: var(--text-dark);
}

.widget-field::placeholder {
    color: var(--text-light);
}

.select-field {
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
}

.widget-submit-btn {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0 2.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.widget-submit-btn:hover {
    background-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(242, 106, 27, 0.2);
}

/* --- Stats Bar Section (Branding Stats) --- */
.stats-section {
    padding: 4rem 0 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary-navy-light);
}

.stat-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-orange);
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #b0c4de;
    font-weight: 500;
}

/* --- Trust Badges Section (Branding Badges) --- */
.trust-badges-section {
    padding: 3rem 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title-wrapper {
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--primary-navy);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.badge-card {
    text-align: center;
    padding: 1.75rem 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.badge-card:hover {
    border-color: var(--accent-orange);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
}

.badge-icon-container {
    background-color: var(--accent-orange-light);
    color: var(--accent-orange);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.badge-card:hover .badge-icon-container {
    background-color: var(--accent-orange);
    color: var(--bg-white);
}

.badge-icon {
    width: 28px;
    height: 28px;
}

.badge-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* --- Value Proposition Section (Website Features) --- */
.value-prop-section {
    padding: 4rem 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.value-card:hover {
    border-color: var(--border-color-focus);
    box-shadow: var(--shadow-md);
}

.value-icon-box {
    background-color: var(--accent-orange-light);
    color: var(--accent-orange);
    border-radius: 8px;
    padding: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon-box svg {
    width: 24px;
    height: 24px;
}

.value-text {
    display: flex;
    flex-direction: column;
}

.value-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.value-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Popular Categories Section --- */
.categories-section {
    padding: 2rem 0 6rem 0;
}

.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.categories-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-navy);
    font-weight: 800;
}

.view-all-link {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all-link:hover {
    color: var(--accent-orange-hover);
    transform: translateX(3px);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.category-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.category-card:hover {
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

/* --- Footer Section --- */
.main-footer {
    background-color: var(--primary-navy-dark);
    color: var(--bg-white);
}

/* Footer Highlights Row */
.footer-highlights {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem 0;
}

.footer-highlights-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.footer-highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
}

.footer-highlight-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

/* Footer Bottom Copyright */
.footer-bottom {
    padding: 2rem 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #94a3b8;
}

.footer-link:hover {
    color: var(--accent-orange);
}


/* --- Responsive Media Queries --- */

/* 1200px and under */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 1024px and under (Tablet landscape/portrait) */
@media (max-width: 1024px) {
    :root {
        --header-height: auto;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-highlights-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* 768px and under (Mobile portrait/landscape) */
@media (max-width: 768px) {
    /* Hide top nav */
    .top-nav-bar {
        display: none;
    }
    
    /* Search in header hidden or collapsed, hamburger shown */
    .header-search-container {
        display: none; /* Can toggle via script in full app, hidden for simple landing */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .btn-signin, .btn-register {
        display: none; /* Moved to drawer */
    }
    
    /* Hero section stacked */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Widget stacks */
    .widget-search-form {
        grid-template-columns: 1fr;
    }
    
    .widget-submit-btn {
        padding: 0.95rem;
    }
    
    /* Stats & Badges stacked */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-highlights-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* 480px and under (Small mobile) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------
 * LOGIN PAGE STYLES
 * ------------------------------------------------------------- */
.login-body {
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem;
}

.back-home-link {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    font-family: var(--font-heading);
    z-index: 10;
}

.back-home-link:hover {
    color: var(--accent-orange);
}

.back-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-smooth);
}

.back-home-link:hover .back-icon {
    transform: translateX(-4px);
}

.login-split-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    width: 100%;
    max-width: 1000px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    min-height: 600px;
}

.login-brand-panel {
    background-color: var(--primary-navy);
    background-image: radial-gradient(circle at 20% 30%, rgba(19, 64, 116, 0.5) 0%, transparent 70%);
    color: var(--bg-white);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.logo-svg-large {
    width: 65px;
    height: 65px;
    margin-bottom: 0.5rem;
}

.login-brand-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-brand-tagline {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #b0c4de;
}

.brand-panel-text {
    margin: 3rem 0;
}

.brand-panel-text h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.brand-panel-text p {
    color: #b0c4de;
    font-size: 1.05rem;
}

.brand-panel-stats {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.panel-stat {
    display: flex;
    flex-direction: column;
}

.panel-stat .stat-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}

.panel-stat .stat-txt {
    font-size: 0.75rem;
    color: #b0c4de;
}

.login-form-panel {
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-card-header {
    margin-bottom: 2rem;
}

.login-card-header h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.login-card-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.login-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.login-tab.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.login-tab-icon {
    width: 16px;
    height: 16px;
}

.login-hint-alert {
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.login-hint-alert code {
    background-color: #fde68a;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.password-label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-pass-link {
    font-size: 0.8rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.forgot-pass-link:hover {
    color: var(--accent-orange-hover);
}

.input-field-container {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    transition: var(--transition-smooth);
}

.input-field-container:focus-within {
    border-color: var(--accent-orange);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(242, 106, 27, 0.1);
}

.input-field-container input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    color: var(--text-dark);
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    width: 18px;
    height: 18px;
    color: var(--text-light);
    pointer-events: none;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.password-toggle-btn:hover {
    color: var(--text-muted);
}

.eye-icon {
    width: 18px;
    height: 18px;
}

.form-options {
    margin: 1.25rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 1.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--text-light);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-block {
    width: 100%;
    font-size: 1rem;
    padding: 0.85rem;
}

.login-card-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.register-link {
    color: var(--accent-orange);
    font-weight: 600;
}

.register-link:hover {
    color: var(--accent-orange-hover);
}

/* -------------------------------------------------------------
 * ADMIN DASHBOARD PORTAL STYLES
 * ------------------------------------------------------------- */
.dashboard-body {
    background-color: #f1f5f9;
    color: #1e293b;
    font-family: var(--font-body);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* Sidebar Styling */
.dashboard-sidebar {
    background-color: var(--primary-navy-dark);
    color: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 90;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-svg-sidebar {
    width: 38px;
    height: 38px;
}

.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title-main {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--bg-white);
}

.orange-text-main {
    color: var(--accent-orange);
}

.logo-tag-main {
    font-size: 0.5rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #94a3b8;
    cursor: pointer;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 1rem;
    flex-grow: 1;
    margin-top: 1.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: #94a3b8;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-link:hover {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: var(--bg-white);
    background-color: var(--accent-orange);
    font-weight: 600;
}

.side-icon {
    width: 18px;
    height: 18px;
}

.badge-count {
    margin-left: auto;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.badge-warning {
    background-color: var(--accent-orange);
    color: var(--bg-white);
}

.sidebar-footer {
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-avatar {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bg-white);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-role {
    font-size: 0.7rem;
    color: #94a3b8;
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    color: #f87171;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--border-radius);
}

.sidebar-logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.08);
}

.logout-icon {
    width: 16px;
    height: 16px;
}

/* Dashboard Content Panel */
.dashboard-main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* Dashboard Header */
.dashboard-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 80;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.mobile-sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-right: 1rem;
}

.mobile-sidebar-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary-navy);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.breadcrumb-separator {
    color: var(--text-light);
}

.dashboard-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.dashboard-search {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-light);
    width: 240px;
}

.dashboard-search input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.5rem 0.5rem 2.25rem;
    font-size: 0.85rem;
    width: 100%;
}

.search-ico {
    position: absolute;
    left: 0.75rem;
    width: 16px;
    height: 16px;
    color: var(--text-light);
}

.header-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.header-action-btn:hover {
    background-color: var(--bg-light);
    color: var(--primary-navy);
}

.header-action-btn svg {
    width: 20px;
    height: 20px;
}

.notification-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-white);
}

.header-admin-avatar {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Dashboard body area */
.dashboard-body-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* KPI Metrics Container */
.metrics-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.metric-dashboard-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.metric-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.metric-icon-box {
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon-box svg {
    width: 18px;
    height: 18px;
}

.bg-blue { background-color: #eff6ff; color: #3b82f6; }
.bg-orange { background-color: var(--accent-orange-light); color: var(--accent-orange); }
.bg-green { background-color: #f0fdf4; color: #22c55e; }
.bg-navy { background-color: #f1f5f9; color: var(--primary-navy); }

.metric-value-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.metric-trend {
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.trend-up {
    background-color: #dcfce7;
    color: #15803d;
}

.trend-warning {
    background-color: #fef3c7;
    color: #b45309;
}

.trend-danger {
    background-color: #fee2e2;
    color: #b91c1c;
}

.trend-icon {
    width: 12px;
    height: 12px;
}

.metric-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Dashboard Grid Layout (Widgets) */
.dashboard-grid-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.dashboard-column-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget-dashboard-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
}

.widget-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.badge-info {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-success {
    background-color: #dcfce7;
    color: #15803d;
}

/* Dashboard Data Tables */
.table-container {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.dashboard-table th {
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background-color: #f8fafc;
}

.text-bold {
    font-weight: 700;
    color: var(--primary-navy);
}

.table-prod-name {
    font-weight: 600;
    color: var(--text-dark);
}

.table-prod-detail {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.status-pill {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

.pill-warning {
    background-color: #fef3c7;
    color: #d97706;
}

.pill-success {
    background-color: #dcfce7;
    color: #16a34a;
}

.pill-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-action-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.rfq-approve-btn {
    color: #16a34a;
    border-color: #bbf7d0;
}

.rfq-approve-btn:hover {
    background-color: #f0fdf4;
}

.rfq-reject-btn {
    color: #dc2626;
    border-color: #fecaca;
}

.rfq-reject-btn:hover {
    background-color: #fef2f2;
}

/* Shipment Tracker list */
.logistics-shipment-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.shipment-tracker-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background-color: var(--bg-light);
}

.shipment-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.vessel-name {
    display: block;
    font-weight: 700;
    color: var(--primary-navy);
}

.route-nodes {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.shipment-eta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-orange);
}

.progress-bar-container {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-bar {
    height: 100%;
    background-color: var(--secondary-blue);
    border-radius: 4px;
}

.vessel-sub-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Supplier queue list */
.application-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.app-item:last-child {
    border-bottom: none;
}

.app-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--bg-white);
    flex-shrink: 0;
}

.bg-avatar-orange { background-color: #fb923c; }
.bg-avatar-blue { background-color: #60a5fa; }
.bg-avatar-green { background-color: #4ade80; }

.app-body {
    flex-grow: 1;
}

.app-comp-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.app-comp-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.app-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-app-action {
    border: none;
    background: none;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-app-verify {
    color: var(--accent-orange);
}

.btn-app-verify:hover {
    color: var(--accent-orange-hover);
    text-decoration: underline;
}

.btn-app-ignore {
    color: var(--text-light);
}

.btn-app-ignore:hover {
    color: var(--text-muted);
}

/* System status items */
.system-status-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator-dot.online {
    background-color: #22c55e;
}

.status-indicator-dot.warning {
    background-color: #eab308;
}

.status-name {
    color: var(--text-muted);
}

/* Responsive Dashboard Rules */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        width: 260px;
        z-index: 150;
    }
    
    .dashboard-sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar-close-btn {
        display: block;
    }
    
    .mobile-sidebar-toggle {
        display: flex;
    }
    
    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .login-split-container {
        grid-template-columns: 1fr;
    }
    
    .login-brand-panel {
        display: none; /* Hide branding sidebar on mobile screens */
    }
    
    .login-form-panel {
        padding: 2rem;
    }
    
    .metrics-container {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-search {
        width: 100%;
        max-width: 240px;
    }
}

/* -------------------------------------------------------------
 * SIDE-FLYOUT SUBMENU FOR USER MANAGEMENT
 * ------------------------------------------------------------- */
.sidebar-nav-item.has-submenu {
    position: relative;
}

.sidebar-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 200px;
    background-color: #081d34; /* Matching var(--primary-navy-dark) */
    border-left: 3px solid var(--accent-orange);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-lg);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0.5rem 0;
    z-index: 999;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav-item.has-submenu:hover .sidebar-submenu,
.sidebar-nav-item.has-submenu.open .sidebar-submenu {
    display: flex;
    opacity: 1;
    transform: translateX(10px);
    pointer-events: auto;
}

.sidebar-nav-item.has-submenu:hover .submenu-arrow-icon,
.sidebar-nav-item.has-submenu.open .submenu-arrow-icon {
    transform: rotate(90deg);
}

.sidebar-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.sidebar-submenu-link:hover {
    color: var(--bg-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-submenu-link.active {
    color: var(--bg-white);
    background-color: rgba(242, 106, 27, 0.15);
    border-left: 2px solid var(--accent-orange);
}

/* --- Premium Toast Notification System --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 9999;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    width: 350px;
    background: rgba(11, 37, 69, 0.95); /* matching primary-navy with opacity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--accent-orange);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--accent-orange);
    margin-top: 2px;
}

.toast-content {
    flex-grow: 1;
}

.toast-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.toast-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-white);
}

.toast-message {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    transition: var(--transition-smooth);
}

.toast-close-btn:hover {
    color: var(--bg-white);
}


