/* ═══════════════════════════════════════════════════════════════
   XPRESS GENOMICS — PORTAL STYLES
   Login, Dashboard, Lab Planner, Mega Menu
   ─────────────────────────────────────────────────────────────── */

/* -- Portal pages: dark nav text on light header -------------------------- */
.page-template-page-lab-planner .navbar-nav,
body[class*="Login"] .navbar-nav,
body[class*="login"] .navbar-nav,
body[class*="Dashboard"] .navbar-nav,
body[class*="dashboard"] .navbar-nav,
body[class*="Lab-Planner"] .navbar-nav,
body[class*="Lab Planner"] .navbar-nav {
    --bs-nav-link-color: #000;
}

/* ═══════════════════════════════════════════════════════════════
   MEGA MENU
   ─────────────────────────────────────────────────────────────── */

/* Override fixed max-height — let content determine size */
.nav-dropdown.active {
    max-height: none !important;
    overflow: visible !important;
}

.mega-menu-inner {
    padding: 0;
}

/* Category headings — primary blue */
.mega-menu-category {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #004DF7;
    margin-bottom: 0.25rem;
    margin-top: 1rem;
}
.mega-menu-category:first-child {
    margin-top: 0;
}

/* Service links */
.mega-menu-links ul {
    margin-bottom: 0;
}
.mega-menu-links li {
    padding-bottom: 0.15rem !important;
}
.mega-menu-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #232323 !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.mega-menu-link:hover {
    color: #004DF7 !important;
}

/* Image panel — right column */
.mega-menu-image-col {
    display: flex;
    align-items: stretch;
}
.mega-menu-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 280px;
}
.mega-menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    transition: opacity 0.35s ease;
}
.mega-menu-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: inherit;
}
.mega-menu-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, transparent 100%);
    border-radius: 0 0 1rem 1rem;
}
.mega-menu-image-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    transition: opacity 0.2s ease;
}
.mega-menu-image-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 300;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: opacity 0.2s ease;
}

/* Responsive: hide image panel on mobile */
@media (max-width: 991.98px) {
    .mega-menu-image-col {
        display: none;
    }
    .mega-menu-links {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD
   ─────────────────────────────────────────────────────────────── */

.xg-dash-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.xg-dash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 77, 247, 0.08);
    border-color: #004DF7 !important;
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN
   ─────────────────────────────────────────────────────────────── */

.xg-login .form-control:focus {
    border-color: #004DF7;
    box-shadow: 0 0 0 0.15rem rgba(0, 77, 247, 0.15);
}
.xg-login .form-check-input:checked {
    background-color: #004DF7;
    border-color: #004DF7;
}

/* ═══════════════════════════════════════════════════════════════
   LAB PLANNER
   ─────────────────────────────────────────────────────────────── */

#lab-planner-root {
    min-height: 100vh;
    font-family: 'SuisseIntl', arial, sans-serif;
}
#lab-planner-root * {
    box-sizing: border-box;
}

.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(35, 35, 35, 0.45);
    backdrop-filter: blur(2px);
    padding: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

#lab-planner-root ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
#lab-planner-root ::-webkit-scrollbar-thumb {
    background: #EEEFEA;
    border-radius: 3px;
}
#lab-planner-root ::-webkit-scrollbar-thumb:hover {
    background: #A6A3A1;
}

.drag-over {
    background: rgba(0, 77, 247, 0.06) !important;
    outline: 2px dashed #004DF7;
    outline-offset: -2px;
}

.xg-saving-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #004DF7, #86ACFF, #004DF7);
    background-size: 200% 100%;
    animation: savingSlide 1.5s ease-in-out infinite;
    z-index: 10000;
}
@keyframes savingSlide {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive: mobile login */
@media (max-width: 991.98px) {
    .xg-login .row {
        flex-direction: column-reverse;
    }
}
