@import url('https://fonts.googleapis.com/css2?family=Yeseva+One&display=swap');

:root {
    --bg-primary: #eff6ff; /* Very light blue */
    --surface: #ffffff;
    --text-main: #1e3a8a;
    --text-muted: #60a5fa;
    --text-card: #1e3a8a;
    --text-card-muted: #60a5fa;

    /* Sidebar Theme */
    --sidebar-bg: #1e3a8a; /* Dark blue */
    --sidebar-text: #eff6ff;
    --sidebar-accent: #3b82f6;

    /* Fonts */
    --font-headers: 'Yeseva One', cursive;
    --font-body: Arial, Helvetica, sans-serif;

    /* Premium High-Contrast Palette */
    --hero-bg: #dbeafe; /* Light blue */
    --accent-dark-blue: #1e40af;
    --accent-blue: #2563eb;
    --accent-green: #3b82f6;

    /* Departmental Color Tokens */
    --dept-accounting: #355872;
    --dept-warehouse: #0ea5e9;
    --dept-purchasing: #9CD5FF;
    --dept-installation: #547A95;
    --dept-admin: #093C5D;

    --nav-height: 90px;
    --nav-bg: #e0f2fe;
    --nav-border: rgba(15, 23, 42, 0.08);
    --bg-color: var(--bg-primary);
    --portal-bg: var(--bg-primary);
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-xl: 32px;

    --accent-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --card-shadow: 0 15px 50px -10px rgba(37, 99, 235, 0.4);
    --card-shadow-hover: 0 25px 70px -12px rgba(37, 99, 235, 0.6);

    /* Glassmorphism Refined */
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(16px);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    /* Button Theme: Light Blue */
    --btn-light-blue: #e0f2fe;
    --btn-light-blue-hover: #bae6fd;
    --btn-text: #1e3a8a;
    --btn-shadow: rgba(186, 230, 253, 0.4);
}

body.transparent-nav-page {
    --bg-primary: #0f172a;
    --surface: #1e293b;
    --text-main: #e0f2fe;
    --text-muted: #94a3b8;
    --nav-bg: rgba(15, 23, 42, 0.95);
    --nav-border: rgba(224, 242, 254, 0.1);
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.transparent-nav-page .navbar .brand-text {
    color: #e0f2fe !important;
    background: none;
    -webkit-text-fill-color: #e0f2fe !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headers);
}

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

/* Aesthetics & Animations */
html {
    scroll-behavior: smooth;
}

body {
    animation: pageFadeIn 0.8s ease-out;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Glassmorphism & Hover States */
.glass-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
}

::selection {
    background: var(--accent-blue);
    color: #ffffff;
}

/* Glassmorphism Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.2rem 0;
}

/* Transparent Nav Page Support */
.transparent-nav-page header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.transparent-nav-page header:has(.navbar-scrolled),
.transparent-nav-page header.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
}

.navbar {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.8rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-text {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Yeseva One', cursive;
}

.transparent-nav-page .brand-text {
    background: none;
    -webkit-text-fill-color: #e0f2fe;
    color: #e0f2fe;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar .logo a:hover {
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a:not(.btn) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.transparent-nav-page .nav-links li a:not(.btn) {
    color: #e0f2fe !important;
}

.nav-links li a:not(.btn):hover {
    color: var(--text-main);
}

.transparent-nav-page .nav-links li a:not(.btn):hover {
    color: #ffffff !important;
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links li a:not(.btn):hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.dropdown-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface);
    min-width: 220px;
    border-radius: 16px;
    padding: 0.75rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--nav-border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #1e3a8a !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.dropdown-menu li a:hover {
    background: rgba(30, 58, 138, 0.08);
    color: #1e3a8a !important;
    padding-left: 1.5rem;
}

.dropdown-menu li a::after {
    display: none !important;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.transparent-nav-page .mobile-menu-toggle {
    color: #e0f2fe !important;
}

.transparent-nav-page .mobile-menu-toggle:hover {
    color: white !important;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0.6rem 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem;
        border-bottom: 1px solid var(--nav-border);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        background: var(--nav-bg) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    .transparent-nav-page .nav-links.active {
        background: rgba(15, 23, 42, 0.98) !important;
    }
}

/* Vibrant Buttons */
.btn {
    text-decoration: none;
    background: var(--btn-light-blue) !important;
    color: var(--btn-text) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 6px -1px var(--btn-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    max-width: 100%;
}

@media (max-width: 600px) {
    .btn {
        width: 100%;
        padding: 0.65rem 1.25rem;
    }
}

.btn:hover {
    transform: translateY(-4px);
    background: var(--btn-light-blue-hover) !important;
    box-shadow: 0 12px 20px -5px var(--btn-shadow);
}

/* Portal Buttons */
.btn-portal {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-portal-primary {
    background: var(--btn-light-blue) !important;
    color: var(--btn-text) !important;
    box-shadow: 0 10px 15px -3px var(--btn-shadow);
}

.btn-portal-primary:hover {
    transform: translateY(-2px);
    background: var(--btn-light-blue-hover) !important;
    box-shadow: 0 20px 25px -5px var(--btn-shadow);
}

.btn-portal-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-main) !important;
}

.btn-portal-outline:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-main);
}

.btn-portal-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
}

.btn-portal-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-portal-success {
    background: #10b981;
    color: white !important;
}

.btn-portal-full {
    width: 100%;
    justify-content: center;
}

/* Premium Empty States */
.premium-empty-state {
    padding: 5rem 2rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    color: var(--text-main);
}

.premium-empty-state .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--text-card-muted);
}

.premium-empty-state h3 {
    font-family: 'Yeseva One', cursive;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.premium-empty-state p {
    color: var(--text-card-muted);
    max-width: 450px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Premium Portal Cards */
.portal-card {
    background: linear-gradient(145deg, #111827, #1f2937);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.portal-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* Main Content */
.content-wrapper {
    flex: 1;
    margin-top: var(--nav-height);
    width: 100%;
}

.content-wrapper.no-nav {
    margin-top: 0 !important;
}

.transparent-nav-page .content-wrapper {
    margin-top: 0 !important;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}


/* High Impact Hero Section */
.hero {
    position: relative;
    padding: 10rem 0 8rem;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.logo img {
    height: 80px;
    filter: none;
    transition: filter 0.3s ease;
}

.transparent-nav-page .navbar .logo img {
    filter: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content h1 {
    color: #e0f2fe !important;
    -webkit-text-fill-color: #e0f2fe !important;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    color: #bae6fd !important;
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 {
    font-family: 'Yeseva One', cursive;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.hero h1 span {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.hero-subtitle {
    color: var(--accent-green);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-subtitle svg {
    width: 24px;
    height: 24px;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-image-wrap {
    position: relative;
    animation: fadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrap img {
    width: 110%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

/* Floating Elements (Wrisda Style) */
.floating-features {
    margin-top: -80px;
    position: relative;
    z-index: 20;
    transform: translateY(0);
}

.feature-cards-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-badge-card {
    background: #1e3a8a; /* Dark Blue */
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-badge-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(224, 242, 254, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #e0f2fe; /* Light Blue */
}

.feature-badge-card h3 {
    font-family: 'Yeseva One', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e0f2fe; /* Light Blue */
}

.feature-badge-card ul,
.feature-badge-card li,
.feature-badge-card p {
    color: #bae6fd; /* Lighter Blue for visibility */
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-badge-card ul {
    list-style: none;
    padding: 0;
}

.feature-badge-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-badge-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #e0f2fe;
}

/* Background Utilities */
.bg-dark-premium {
    background-color: var(--hero-bg);
    position: relative;
    overflow: hidden;
}

.bg-mesh {
    background-color: var(--hero-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(20, 184, 166, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(37, 99, 235, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(134, 239, 172, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(20, 184, 166, 0.1) 0px, transparent 50%);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glass-card h3,
.glass-card h2,
.glass-card p {
    color: inherit;
}

.glass-card p {
    opacity: 0.8;
}

.section-padding {
    padding: 10rem 0;
}

/* Section Header (Wrisda Style) */
.wrisda-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.divider-line {
    height: 2px;
    width: 60px;
    background: var(--accent-dark-blue);
    opacity: 0.3;
}

.divider-icon {
    color: var(--accent-dark-blue);
    width: 20px;
    height: 20px;
}

.wrisda-section-header h2 {
    font-family: 'Yeseva One', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .feature-cards-wrap {
        grid-template-columns: 1fr;
    }

    .hero-image-wrap {
        display: none;
    }

    .hero-subtitle {
        justify-content: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Grid for Projects (Wrisda Style) */
.wrisda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.wrisda-grid-item {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    min-height: 380px;
}

.wrisda-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wrisda-grid-item:hover img {
    transform: scale(1.1);
}

/* Dark Footer (Wrisda Style) */
.wrisda-footer {
    background-color: var(--hero-bg);
    padding: 3rem 0;
    color: var(--text-main);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-family: 'Yeseva One', cursive;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-dark-blue);
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    background: #fdf8f0;
    /* Cream */
}

.login-split-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 620px;
    height: auto;
    background: var(--surface);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .login-split-container {
        flex-direction: column;
        min-height: auto;
        border-radius: 24px;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    .login-left {
        padding: 2.5rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--nav-border);
    }
    .login-left .big-logo {
        width: 200px;
    }
    .login-right {
        padding: 2.5rem 2rem;
    }
    .auth-card {
        max-width: 100%;
    }
}

.login-left {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
    color: var(--text-main);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--nav-border);
    gap: 0.5rem;
}

.login-left .big-logo {
    position: relative;
    width: 420px;
    height: auto;
    opacity: 1;
    filter: none;
    z-index: 1;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-left h1 {
    font-family: 'Yeseva One', cursive;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin: 0;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}


.login-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    color: #64748b;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    padding: 0.9rem 1.25rem 0.9rem 3.25rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.input-wrapper input:focus+.input-icon {
    color: var(--accent-primary);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* Cards (Dark Glassmorphism) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-primary);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-text {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

/* Auth Forms */
.input-wrapper input {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--surface);
}



.partners-section {
    padding: 0rem 2rem 1rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 60%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.partner-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    gap: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.partner-card img {
    height: 150px;
    width: auto;
    filter: none;
    opacity: 1;
    transition: all 0.4s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    background: #ffffff;
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 0 0 25px rgba(13, 148, 136, 0.05);
}

.partner-card:hover img {
    transform: scale(1.05);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.partner-card:hover .brand-name {
    color: var(--text-main);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(13, 148, 136, 0.05);
    color: var(--accent-primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(13, 148, 136, 0.1);
}

/* About Us Page Styles */
.about-hero {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 4rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.95)),
        url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-content {
    padding: 1rem 2rem;
}

.container-medium {
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--nav-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.about-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* New About Us Page Sections */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.about-intro {
    padding: 0.75rem 2rem 1rem 2rem;
}

.intro-card {
    background: #f8fafc;
}

.what-we-do,
.why-choose,
.core-values {
    padding: 4rem 2rem;
}

.mission-vision {
    padding: 8rem 2rem;
}

.cta-section {
    padding: 8rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-item {
    background: var(--surface);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.service-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(13, 148, 136, 0.05);
    color: var(--accent-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.service-item ul {
    list-style: none;
    color: var(--text-muted);
}

.service-item li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.why-item {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.3s ease;
}

.why-item:hover {
    background: rgba(13, 148, 136, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mv-item {
    background: var(--surface);
    border: 1px solid var(--nav-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03);
}

.mv-item h3 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.value-card {
    background: #9CD5FF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 1rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.15);
}

.swal2-styled.swal2-confirm {
    background-color: var(--btn-light-blue) !important;
    color: var(--btn-text) !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 700 !important;
}
.cta-card {
    background: var(--accent-gradient);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    color: white;
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.2);
}

.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-card p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    font-size: 1.1rem;
}

.docs-section {
    padding: 8rem 2rem;
}

.center-header {
    text-align: center;
    margin-bottom: 2rem;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doc-card {
    background: var(--surface);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.admin-card,
.admin-section-card,
.glass-card,
.delivery-alert-vibe,
.dashboard-card-v2,
.stat-card,
.auth-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    color: var(--text-card);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.auth-card {
    padding: 3rem;
    max-width: 450px;
    width: 100%;
}

.admin-card h1, .admin-card h2, .admin-card h3, .admin-card h4, .admin-card h5, .admin-card h6 {
    color: var(--text-card) !important;
}

.admin-card label {
    color: var(--text-card-muted) !important;
}

.admin-card .text-muted {
    color: var(--text-card-muted) !important;
}

.admin-card table th {
    color: var(--text-card-muted) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.admin-card table td {
    color: var(--text-card) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Reusable Action Dropdown */
.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #111827;
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    z-index: 100;
    overflow: hidden;
    margin-top: 5px;
}

.action-dropdown:hover .action-dropdown-content {
    display: block;
}

.action-dropdown-content a, 
.action-dropdown-content button {
    color: #f3f4f6;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
}

.action-dropdown-content a:hover,
.action-dropdown-content button:hover {
    background-color: rgba(37, 99, 235, 0.2);
    color: white;
}

.doc-preview {
    width: 100%;
    aspect-ratio: 3/4;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doc-info {
    padding: 2rem;
}

.doc-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.doc-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.doc-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.doc-card:hover .doc-preview img {
    transform: scale(1.05);
}

/* Floating Flash Messages (Centered & Large) */
.flash-messages {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    pointer-events: none;
    max-width: 650px;
    width: 90%;
}

.alert {
    padding: 3rem 3.5rem;
    border-radius: 32px;
    font-weight: 700;
    font-size: 1.6rem;
    box-shadow: 0 40px 100px -15px rgba(0, 0, 0, 0.4), 0 20px 40px -20px rgba(0, 0, 0, 0.3);
    background: var(--surface, #ffffff);
    color: var(--text-main, #1e3a8a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    pointer-events: auto;
    animation: alertPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    backdrop-filter: blur(20px);
}

@keyframes alertPopIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.alert-error, .alert-danger {
    border-top: 8px solid #ef4444;
}

.alert-error::before, .alert-danger::before {
    content: '⚠️';
    font-size: 3rem;
}

.alert-success {
    border-top: 8px solid #10b981;
}

.alert-success::before {
    content: '✅';
    font-size: 3rem;
}

.alert-warning, .alert-info {
    border-top: 8px solid #f59e0b;
}

.alert-warning::before, .alert-info::before {
    content: 'ℹ️';
    font-size: 3rem;
}

@keyframes slideInRightCard {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-hero,
.about-intro,
.what-we-do,
.why-choose,
.mission-vision,
.core-values,
.cta-section {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.about-intro {
    animation-delay: 0.1s;
}

.what-we-do {
    animation-delay: 0.2s;
}

.why-choose {
    animation-delay: 0.3s;
}

.mission-vision {
    animation-delay: 0.4s;
}

.core-values {
    animation-delay: 0.5s;
}

.cta-section {
    animation-delay: 0.6s;
}

.service-item,
.why-item,
.mv-item,
.value-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer {
    background: #f0ece4;
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Admin Dashboard & Sidebar Styles --- */
/* --- Unified Responsive Admin/Portal Layout --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    width: 100%;
}

/* --- Unify Admin Button Styling: Light Blue with Dark Text --- */
/* Target common button classes and raw button elements within the admin layout */
.admin-layout .btn,
.admin-layout .btn-primary,
.admin-layout .btn-outline,
.admin-layout .btn-portal,
.admin-layout .btn-portal-primary,
.admin-layout .btn-portal-outline,
.admin-layout button:not(.floating-portal-burger):not(.admin-burger):not(.close-btn):not(#send-message):not(.cus-icon-btn):not(.btn-reserve-parts):not(.btn-edit-project):not(.project-actions button) {
    background: var(--btn-light-blue) !important;
    color: var(--btn-text) !important;
    border: 1px solid rgba(30, 58, 138, 0.1) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.75rem !important;
    gap: 0.5rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 6px -1px var(--btn-shadow) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.admin-layout .btn:hover,
.admin-layout .btn-primary:hover,
.admin-layout .btn-outline:hover,
.admin-layout .btn-portal:hover,
.admin-layout .btn-portal-primary:hover,
.admin-layout .btn-portal-outline:hover,
.admin-layout button:not(.floating-portal-burger):not(.admin-burger):not(.close-btn):not(#send-message):not(.cus-icon-btn):not(.btn-reserve-parts):not(.btn-edit-project):not(.project-actions button):hover {
    background: var(--btn-light-blue-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 15px -3px var(--btn-shadow) !important;
    color: var(--btn-text) !important;
}

.admin-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 1.5rem;
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    /* Default to docked on Desktop, hidden on Mobile */
    transform: translateX(0);
    width: 72px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s ease, padding 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

/* On Desktop: Is always visible, just toggles width */
@media (min-width: 1025px) {
    .admin-sidebar {
        transform: translateX(0) !important;
        padding: 2.5rem 0.75rem;
        /* Narrower padding for docked */
    }

    .admin-sidebar.open {
        width: 280px;
        padding: 2.5rem 1.5rem;
    }
}

.admin-main {
    flex: 1;
    margin-left: 72px;
    /* Accommodate docked sidebar */
    padding: 64px 0 2.5rem;
    max-width: 100%;
    transition: margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.portal-content {
    padding: 0 2rem 2.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

/* Ensure direct children of admin-main fill the width */
.admin-main > div, 
.admin-main > header, 
.admin-main > section {
    width: 100%;
}

.admin-main h1, 
.admin-main h2, 
.admin-main h3, 
.admin-main h4, 
.admin-main h5, 
.admin-main h6 {
    text-align: left;
    width: 100%;
}

/* When expanded */
.admin-sidebar.open~.admin-main {
    margin-left: 280px;
}

/* Margin adjustment when sidebar is open on Desktop */
@media (min-width: 1025px) {
    .admin-layout:has(.admin-sidebar.open) .admin-main {
        margin-left: 280px;
    }
    .admin-layout:has(.admin-sidebar.open) .cus-header {
        left: 280px !important;
    }
}

.cus-header {
    width: auto !important;
}

@media (max-width: 1024px) {
    .cus-header {
        left: 0 !important;
        padding: 0.75rem 1rem !important;
    }
}

/* Sidebar Scrollbar */
.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.1);
    border-radius: 10px;
}

.admin-sidebar:hover::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
}

/* Tablet & Mobile Responsiveness (Up to 1024px) */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .admin-sidebar.open {
        transform: translateX(0);
        width: 280px;
        /* Ensure full width on mobile when open */
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.15);
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 5rem 1.5rem 1.5rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

/* Small Device Adjustments (Up to 600px) */
@media (max-width: 600px) {
    .admin-main {
        padding: 4.5rem 1rem 1.5rem;
    }

    .admin-header h1 {
        font-size: 2rem;
    }
}

/* Persistent Burger Button */
.persistent-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: white;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #1e293b;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.persistent-burger:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Floating Portal Burger */
.floating-portal-burger {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    display: none; /* Only on mobile */
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;

    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-portal-burger:hover {
    transform: scale(1.1);
    color: #ffffff;

}

@media (max-width: 1024px) {
    .floating-portal-burger {
        display: flex;
    }
}

/* Stats Cards */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 3.5rem;
    justify-content: center;
}

@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.admin-stat-card {
    background: var(--surface);
    padding: 1.75rem 1.5rem;
    border-radius: 22px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.08);
    transition: transform 0.3s ease;
    min-width: 0;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
}

.admin-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-stat-info {
    min-width: 0;
    width: 100%;
}

.admin-stat-info h3 {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-stat-info .stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Admin Management Section */
.admin-section-card {
    background: var(--surface);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.admin-section-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1.5rem;
}

.admin-section-header h2 {
    font-family: 'Yeseva One', cursive;
    font-size: 1.75rem;
    color: var(--text-main);
}

@media (max-width: 1024px) {
    .admin-main {
        padding: 2rem;
    }
}

/* Dashboard UI Upgrade - Professional Quick Actions & Cards */
.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 1100px) {
    .quick-actions-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .quick-actions-row {
        grid-template-columns: 1fr;
    }
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.12);
    background: #f8fafc;
}

.quick-action-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-action-btn:hover .quick-action-icon-box {
    background: var(--accent-primary);
    color: white;
}

.quick-action-info {
    display: flex;
    flex-direction: column;
}

.quick-action-info span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.dashboard-card-v2 {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.pro-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.pro-table th {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
}

.pro-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f8fafc;
    vertical-align: middle;
}

.pro-table tr:last-child td {
    border-bottom: none;
}

.pro-table tr:hover td {
    background: #fbfcfe;
}

/* Responsive Table Utility */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 12px;
}

/* Fluid Typography Helpers */
.fluid-h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.fluid-h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.fluid-p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Grid Improvements */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 100%, 350px), 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Shared Header Glass Effect (Moved and Unified) */
.glass-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
}



.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    margin: 0.75rem 1.5rem;
    animation: portalSlideRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: opacity 0.35s ease, transform 0.35s ease;
    max-width: 520px;
}

/* Portal context: no outer margin needed */
.admin-main .alert {
    margin: 0 0 1rem;
}

/* Hide transition */
.alert-hide {
    opacity: 0 !important;
    transform: translateX(-8px) !important;
}

/* Variants */
.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.alert-danger,
.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
    border-left: 3px solid #3b82f6;
}

/* =====================================================
   PORTAL ANIMATION SYSTEM
   Consistent micro-animations for all portal pages
   ===================================================== */

/* ----- Keyframes ----- */
@keyframes portalFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes portalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes portalSlideRight {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes portalPop {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    60% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ----- Page entry: main content area fades up ----- */
.admin-main {
    animation: portalFadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ----- Admin cards animate in with stagger ----- */
.admin-card {
    animation: portalFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.07), 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Stagger siblings */
.admin-card:nth-child(1) {
    animation-delay: 0.05s;
}

.admin-card:nth-child(2) {
    animation-delay: 0.10s;
}

.admin-card:nth-child(3) {
    animation-delay: 0.15s;
}

.admin-card:nth-child(4) {
    animation-delay: 0.20s;
}

.admin-card:nth-child(5) {
    animation-delay: 0.25s;
}

.admin-card:nth-child(6) {
    animation-delay: 0.30s;
}

/* ----- Quick-action / stat cards ----- */
.quick-action-btn,
.stat-card,
.summary-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    animation: portalFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quick-action-btn:hover,
.stat-card:hover,
.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

/* ----- Buttons: smooth press ----- */
.btn {
    transition: background 0.2s ease, color 0.2s ease,
        box-shadow 0.2s ease, transform 0.15s ease,
        border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.btn:active {
    transform: translateY(0px);
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--btn-text);
    color: var(--btn-text) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--btn-light-blue);
    color: var(--btn-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--btn-shadow);
}

.btn-outline:active {
    transform: translateY(0);
}

/* ----- Table rows (pro-table & generic portals) ----- */
.pro-table tbody tr,
.admin-table tbody tr {
    transition: background 0.15s ease;
}

/* ----- Sidebar nav links ----- */
.cus-nav-link,
.admin-nav-link,
.sales-nav-link,
.fin-nav-link,
.inv-nav-link,
.tech-nav-link {
    transition: background 0.18s ease, color 0.18s ease,
        padding-left 0.18s ease, transform 0.18s ease;
}

.cus-nav-link:hover,
.admin-nav-link:hover,
.sales-nav-link:hover,
.fin-nav-link:hover,
.inv-nav-link:hover,
.tech-nav-link:hover {
    transform: translateX(2px);
}

/* ----- Alert banners slide in ----- */
.alert {
    animation: portalSlideRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ----- Floating burger button ----- */
.floating-portal-burger {
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-portal-burger:hover {
    transform: scale(1.1);
}

.floating-portal-burger:active {
    transform: scale(0.97);
}

/* ----- Input focus ring ----- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    border-color: #93c5fd !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ----- Profile avatar pop on hover ----- */
.cus-avatar,
.admin-avatar,
.fin-avatar,
.sales-avatar,
.inv-avatar,
.tech-avatar {
    transition: transform 0.2s ease;
}

.cus-avatar:hover,
.admin-avatar:hover,
.fin-avatar:hover {
    transform: scale(1.08);
}

/* ----- Global Modal Styles ----- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 1rem;
    overflow-y: auto;
}

.modal.open {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    background: var(--surface);
    color: var(--text-card);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid rgba(37, 99, 235, 0.15);
    overflow-y: auto;
    margin: auto;
}

@media (max-width: 600px) {
    .modal-content {
        padding: 1.5rem;
        border-radius: 16px;
        max-height: 95vh;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Yeseva One', cursive;
    color: var(--text-main);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.btn-close,
.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.btn-close:hover,
.close-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .modal-footer {
        flex-direction: column-reverse;
    }
    .modal-footer .btn,
    .modal-footer button {
        width: 100% !important;
    }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =====================================================
   RESPONSIVE ADDITIONS — Global
   ===================================================== */

/* Footer responsive grid */
.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
    .footer-top-grid .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .wrisda-footer {
        padding: 3rem 0 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Responsive navbar padding */
@media (max-width: 600px) {
    .navbar {
        padding: 0.8rem 1.25rem;
    }
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    .hero {
        padding: 7rem 0 5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }
    .hero {
        padding: 5rem 0 3rem;
    }
}

/* Portal content responsive padding */
@media (max-width: 768px) {
    .portal-content {
        padding: 0 1.25rem 2rem;
    }
}

@media (max-width: 480px) {
    .portal-content {
        padding: 0 1rem 1.5rem;
    }
}

/* Responsive form grids utility */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Table horizontal scroll utility */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}

.table-responsive table {
    min-width: 600px;
}

/* Dashboard stat grid — customer portal */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 1100px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Portal page headings + header row responsive */
.portal-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Responsive summary/info cards */
.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Admin section card mobile */
@media (max-width: 768px) {
    .admin-section-card {
        padding: 1.5rem;
        border-radius: 20px;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Greeting banner responsive */
.greeting-banner {
    background: linear-gradient(135deg, var(--accent-dark-blue), var(--accent-blue));
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: white;
}

.greeting-content h2 {
    font-family: 'Yeseva One', cursive;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: white;
    margin-bottom: 0.25rem;
}

.greeting-content p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin: 0;
}

.overview-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* Action center cards */
.action-center-wrapper {
    margin-bottom: 2rem;
}

.modern-action-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: white;
    border: 1px solid rgba(148,163,184,0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}

.modern-action-card:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,0.1);
    transform: translateY(-1px);
}

.modern-lead-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(37,99,235,0.07);
    flex-shrink: 0;
}

.modern-action-content {
    flex: 1;
    min-width: 0;
}

.modern-action-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.modern-action-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-action-right {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .modern-action-card {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .modern-action-right {
        width: 100%;
    }
    .modern-action-right .btn {
        width: 100%;
    }
}

/* Floating portal burger — ensure visible on mobile */
@media (max-width: 1024px) {
    .floating-portal-burger {
        display: flex !important;
    }
}

/* Prevent content overflow on very small screens */
@media (max-width: 360px) {
    .container {
        padding: 1rem;
    }
    .brand-text {
        font-size: 1.4rem;
    }
}

/* Warehouse/Admin two-column grid responsive collapse */
.portal-content[style*="grid-template-columns: 1.5fr 1fr"] {
    display: grid;
}

@media (max-width: 900px) {
    .portal-content[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Quick actions row responsive — stack below 600px */
@media (max-width: 600px) {
    .quick-actions-row {
        flex-direction: column;
    }
    .quick-action-btn {
        width: 100%;
        min-width: unset !important;
    }
}

/* Admin action-center grid — single column on mobile */
@media (max-width: 640px) {
    [style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
}

/* Dashboard top section responsive — used on admin/analytics */
@media (max-width: 1024px) {
    .dashboard-top-section {
        grid-template-columns: 1fr !important;
    }
}

/* Analytics grid responsive */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr !important;
    }
    .chart-container {
        padding: 1.5rem;
        border-radius: 20px;
    }
}

/* Accounting quick actions row — responsive */
@media (max-width: 768px) {
    .quick-actions-row a[style*="min-width: 280px"] {
        min-width: unset !important;
        width: 100%;
    }
}

/* my_orders cart layout — responsive */
.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    .cart-summary-container {
        order: -1;
    }
}

/* billing-dashboard-layout responsive */
.billing-dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .billing-dashboard-layout {
        grid-template-columns: 1fr;
    }
}

/* GLOBAL PORTAL LAYOUT STRUCTURE */
.admin-layout, .portal-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

/* Sidebar Bases */
.admin-sidebar, .cus-sidebar, .portal-sidebar, .inv-styled-sidebar {
    width: 80px;
    flex-shrink: 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.cus-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 2px 0.5rem 0.5rem;
    height: 56px;
    position: fixed;
    top: 0;
    right: 0;
    left: 80px; /* Sidebar width */
    z-index: 999;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar.open ~ .admin-main .cus-header,
.admin-sidebar.open + .admin-main .cus-header,
.admin-sidebar.open ~ .cus-header,
.admin-sidebar.open ~ main .cus-header {
    left: 250px;
}

.admin-sidebar.open, .cus-sidebar.open, .portal-sidebar.open, .inv-styled-sidebar.open {
    width: 250px;
}

.admin-main, .portal-main {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1024px) {
    .admin-sidebar, .cus-sidebar, .portal-sidebar, .inv-styled-sidebar {
        position: fixed !important;
        top: 0;
        left: -250px !important;
        height: 100vh;
        width: 250px !important;
        box-shadow: 2px 0 15px rgba(0,0,0,0.15);
        z-index: 9999;
    }
    
    .admin-sidebar.open, .cus-sidebar.open, .portal-sidebar.open, .inv-styled-sidebar.open {
        left: 0 !important;
    }

    /* Fix header offset on mobile */
    .cus-header, .glass-header {
        left: 0 !important;
        width: 100% !important;
        padding-left: 4rem !important; /* Make room for the floating burger */
    }

    /* Main content padding on mobile */
    .admin-main, .portal-main {
        padding-top: 60px !important;
    }
}

/* Sidebar Overlay Styling */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Responsive Public View Mobile Update */
@media (max-width: 1024px) {
    .feature-cards-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .footer-top-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem !important;
    }
    .feature-cards-wrap {
        grid-template-columns: 1fr !important;
    }
    .footer-top-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    .hero-container {
        padding: 0 1.5rem !important;
    }
    .hero {
        padding: 6rem 0 4rem !important;
        background-attachment: scroll !important;
    }
    .section-padding {
        padding: 4rem 1.5rem !important;
    }
    .wrisda-section-header h2 {
        font-size: 2.2rem !important;
    }
    .nav-links.active {
        width: 100vw;
    }
}

/* Global Table Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 12px;
}

/* Force horizontal scroll for all tables if needed, 
   but ideally wrap them in .table-responsive for better control */
table {
    min-width: 600px; /* Ensure tables don't squish too much */
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    display: block;
}

/* Dashboards & Grids - Responsive best practices */
.dashboard-grid, .stat-grid, .portal-stat-grid {
    display: grid !important;
    gap: 1.5rem !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
}

/* Dashboard detail area wrapping */
.dashboard-main-area {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 1.5rem !important;
}

@media (max-width: 1024px) {
    .dashboard-grid, .stat-grid, .portal-stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .dashboard-grid, .stat-grid, .portal-stat-grid, .dashboard-main-area {
        grid-template-columns: 1fr !important;
    }
    
    .container {
        padding: 1rem !important;
    }
}
/* Public View Responsive Grids */
@media (max-width: 1024px) {
    .wrisda-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .wrisda-grid {
        grid-template-columns: 1fr !important;
    }
    
    .partners-grid, .docs-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        letter-spacing: -1px !important;
    }

    #homeStatsRow {
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }
    
    #homeStatsRow > div {
        min-width: unset !important;
        width: 100% !important;
    }
}

/* Modal Responsiveness */
@media (max-width: 900px) {
    #projectDetailsModal .modal-content > div {
        grid-template-columns: 1fr !important;
    }
    
    #projectDetailsModal .modal-content {
        max-height: 95vh !important;
        border-radius: 20px !important;
    }
    
    #projectDetailsModal .modal-content > div > div:first-child {
        height: 300px !important;
    }
    
    #projectDetailsModal .modal-content > div > div:last-child {
        padding: 2rem !important;
    }
    
    #projectDetailsModal h2 {
        font-size: 1.75rem !important;
    }
}

/* About Page Specific Grids */
.about-grid-stack {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .about-grid-stack {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}
/* 
   GLOBAL UI CLEANUP: Burger Navigation Refinement
   - Standardizes all portal toggle buttons to a minimalist, transparent 3-line format.
   - Removes background colors, borders, and rounded containers.
*/
.fin-burger, 
.admin-burger, 
.inv-burger, 
.tech-burger, 
.sales-burger, 
.cus-burger,
.floating-portal-burger,
.header-burger {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
    color: #ffffff !important;
}


.fin-burger:hover, 
.admin-burger:hover, 
.inv-burger:hover, 
.tech-burger:hover, 
.sales-burger:hover, 
.cus-burger:hover,
.floating-portal-burger:hover {
    transform: scale(1.15) !important;
    background: none !important;
}

.fin-burger svg, 
.admin-burger svg, 
.inv-burger svg, 
.tech-burger svg, 
.sales-burger svg, 
.cus-burger svg,
.floating-portal-burger svg,
.header-burger svg {
    width: 24px !important;
    height: 24px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
}

