#navbar {
    border-bottom: 1px solid #E2E8F0;
}

/* Navbar Flex Layout */
/* Ensure the main container spanning the header has height */
.navbar-container {
    height: 100%;
}

/* Ensure intermediate grid wrappers (if present) also inherit height */
.navbar-container .container-row,
.navbar-container .container-col,
.navbar-container .navbar-header-wrapper {
    height: 100%;
    margin: 0;
    /* Removing potential grid margins that might affect height */
    padding: 0;
    /* Removing potential grid padding */
}

.navbar-flex-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    /* Ensure it fills the vertical space */
}

.navbar-header {
    display: flex;
    align-items: center;
    height: 100%;
    /* Ensure it fills the vertical space */
}

/* Center the collapsible menu */
.dxpr-theme-main-menu {
    flex-grow: 1;
    justify-content: center;
    /* Center content within the nav */
    display: flex;
    height: 100%;
    /* Ensure it fills the vertical space */
    align-items: center;
    /* Ensure items inside are centered */
}

.navigation-collapsible {
    height: 99%
}

/* Ensure right region is right aligned */
.navbar-right-region {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    /* Ensure it fills the vertical space */
}

/* Responsive adjustments if needed - usually stacked on mobile */
@media (max-width: 1200px) {

    /* Allow height to grow when menu opens */
    .navbar-container,
    .navbar-flex-wrapper,
    .navbar-header,
    .navbar-header-wrapper,
    .container-row,
    .container-col {
        height: auto !important;
        min-height: 60px;
        /* Preserve minimum touch target size */
    }

    /* Push content down to prevent fixed header overlap */
    .wrap-containers {
        padding-top: 70px;
    }

    .navbar-flex-wrapper {
        flex-wrap: wrap;
        align-items: flex-start;
        /* Prevent vertical centering from pushing content up */
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Force parents to static so absolute menu positions relative to the header (viewport width) */
    .navbar-container,
    .navbar-flex-wrapper {
        position: static !important;
    }

    /* Ensure the header itself is the positioning context */
    .dxpr-theme-header,
    header {
        position: relative !important;
    }

    /* Ensure the header content (logo, toggle) stays on top of the fullscreen menu */
    .navbar-header {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        /* Keep logo and toggle centered vertically relative to each other */
    }

    /* Reduce logo size on mobile. */
    .logo.navbar-btn img {
        max-width: 70%;
        height: auto;
    }


    .dxpr-theme-main-menu {
        /* Position absolute relative to the main <header> which is full width */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin-left: 0;

        /* NOTE: display: flex removed here so standard collapse works (display:none) */

        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        /* Reset height and allow scrolling */
        height: auto !important;
        max-height: 85vh;
        overflow-y: auto;

        margin-top: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        background-color: #ffffff;
        z-index: 1000;
        /* Ensure it stays on top */
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    /* Apply display:flex only when the menu is shown or collapsing */
    .dxpr-theme-main-menu.show,
    .dxpr-theme-main-menu.collapsing {
        display: flex !important;
    }

    /* Target the list to ensuring proper stacking and centering */
    .dxpr-theme-main-menu ul,
    .dxpr-theme-main-menu .navbar-nav {
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
    }

    /* Target list items to be wide and centered */
    .dxpr-theme-main-menu .nav-item {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Hide the right region when in mobile menu mode (which is now below xl / 1200px) */
    .navbar-right-region {
        display: none !important;
    }
}

.nav-item {
    padding-left: 2em;
    padding-right: 2em;
}



/* Fix skewing of children */
.navbar-right-region,
.navbar-right-region>ul,
.navbar-right-region>div {
    margin: 0 !important;
    padding: 0 !important;
}

/* Force nav items to behave like flex containers for perfect centering */
/* Assuming nav items want to be full height of the bar like standard menu items */
.navbar-right-region .navbar-nav,
.navbar-right-region .nav-item,
.navbar-right-region .nav-link {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Button should be auto height and strictly centered */
.navbar-right-region .btn,
.navbar-right-region button {
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
}

/* Specific fix for navbar-nav which often has bottom margin */
.navbar-right-region ul.navbar-nav {
    margin-bottom: 0 !important;
}

/* Footer 3-Column Layout */
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

.footer-col-left {
    flex: 0 0 30%;
    max-width: 30%;
    padding-left: 75px;
    /* Add left padding */
}

.footer-col-center {
    flex: 0 0 40%;
    max-width: 40%;
}

.footer-col-right {
    flex: 0 0 30%;
    max-width: 30%;
    padding-right: 75px;
    /* Add right padding to match */
}

@media (max-width: 767px) {

    /* Stack footer columns */
    .footer-col-left,
    .footer-col-center,
    .footer-col-right {
        flex: 0 0 100%;
        max-width: 100%;
        /* Reset specific paddings */
        padding-left: 15px;
        padding-right: 15px;
        /* Center text */
        text-align: center;
    }

    /* Override flex alignment for right footer column */
    .footer-col-right {
        align-items: center;
    }

    /* Aggressive centering for all main content below navbar */
    .wrap-containers,
    body>.wrap-containers,
    section,
    article,
    .region,
    .block,
    .views-row,
    .field,
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        text-align: center !important;
    }

    /* Ensure block level elements with width are centered via margin */
    img,
    table,
    .block,
    .view,
    .item-list {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Force flex containers to center nested items */
    .row,
    .d-flex {
        justify-content: center !important;
    }

}

/* Footer Styling */
.dxpr-theme-footer {
    background-color: #ffffff;
    color: #000000;
}

.dxpr-theme-footer a {
    color: #000000;
}

/* Right align content in the right column */
.footer-col-right {
    display: flex;
    flex-direction: column;
    /* align-items: flex-end; Removed to allow full width */
    text-align: right;
}

/* Reduce logo size in footer */
.dxpr-theme-footer img {
    max-width: 30%;
    height: auto;
}

/* Custom Font Stack (Inter + Tailwind Default) */
body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* =========================================
   Login Page Card Design (Tailwind Translated)
   ========================================= */

/* Body Background */
body.page-user-login {
    background-color: #f8fafc;
    color: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Wrapper (Centering) */
.login-card-wrapper {
    width: 100%;
    max-width: 28rem;
    /* max-w-md */
    margin: 0 auto;
    padding: 1rem;
}

/* Text Center Helper */
.text-center {
    text-align: center;
}

/* Margin Bottom 8 (2rem) */
.mb-8 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Logo Setup */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: #2563eb;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

/* Main Logo Size (Requested max-width 200px) */
.h-16 {
    height: auto !important;
    /* Allow height to scale */
    max-width: 200px !important;
    /* User requested 200px max width */
    width: 100%;
    /* Take up available space up to max-width */
}

/* Typography */
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

/* ... (unchanged) ... */

/* Divider Lines - Black and Visible */
.border-t {
    border-top-width: 1px;
}

.border-slate-200 {
    border-color: #000000 !important;
    /* Changed to Black */
}

/* Google Button SVG Visibility */
.google-btn svg {
    display: block;
    width: 1.25rem;
    /* w-5 */
    height: 1.25rem;
    /* h-5 */
}

/* Ensure the Google Button text is visible and standard */
.google-btn {
    /* ... existing ... */
    height: auto;
    /* Allow height to adjust */
}

/* Hide standard Drupal junk if present */
#edit-name--description,
#edit-pass--description {
    display: none;
}

.font-bold {
    font-weight: 700;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.text-slate-900 {
    color: #0f172a;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-slate-700 {
    color: #334155;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Card Container */
.login-card {
    background-color: #ffffff;
    border-radius: 1rem;
    /* rounded-2xl */
    padding: 2rem;
    /* p-8 */
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Inputs */
.input-field {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    /* py-2.5 px-4 */
    border-radius: 0.5rem;
    /* rounded-lg */
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow width */
}

.input-field:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-field::placeholder {
    color: #94a3b8;
}

/* Labels */
label {
    display: block;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 600;
    /* font-semibold */
    color: #334155;
    /* text-slate-700 */
    margin-bottom: 0.375rem;
}

/* Form Item Spacing */
.form-item {
    margin-bottom: 1.25rem;
    /* space-y-5 approx */
}

/* Red Asterisk for Required Fields */
.form-required::after,
.js-form-required::after {
    content: '*';
    color: #ef4444 !important;
    /* Tailwind text-red-500 */
    margin-left: 0.25rem;
    display: inline-block;
}

/* Forgot Password Link Placement */
.forgot-password-link {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    /* Add margin above as requested */
    margin-bottom: 0.5rem;
}

.forgot-password-link a {
    font-size: 0.875rem;
    /* Slightly larger for visibility? user said text-xs so stick to small but maybe sm */
    font-size: 0.75rem;
    color: #2563eb;
    /* text-blue-600 */
    font-weight: 500;
    text-decoration: none;
}

.forgot-password-link a:hover {
    color: #1d4ed8;
}

/* Primary Button */
.btn-primary {
    background-color: #2563eb;
    color: white;
    width: 100%;
    padding: 0.75rem 1rem;
    /* py-3 px-4 */
    border-radius: 0.5rem;
    /* rounded-lg */
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
    display: block;
}

.btn-primary:hover {
    background-color: #1d4ed8 !important;
    color: white !important;
    border-color: #1d4ed8 !important;
}

/* =========================================
   Robust Divider Implementation
   ========================================= */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #000000;
}

/* =========================================
   User Profile Page Fix
   ========================================= */
body.user-logged-in main {
    padding-top: 20px;
    /* Base padding */
}

/* Ensure content clears fixed header on profile pages */
body.page-user .layout-container,
body.page-user-edit .layout-container {
    padding-top: 100px !important;
}

/* Ensure tabs are visible */
.tabs--primary {
    margin-top: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 5;
}

.login-divider::after {
    margin-left: 1rem;
}

.login-divider-text {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #64748b;
    /* slate-500 */
    font-weight: 500;
    white-space: nowrap;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.uppercase {
    text-transform: uppercase;
}

.font-medium {
    font-weight: 500;
}

/* =========================================
   Robust Google Button Icon
   ========================================= */
.google-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.google-btn svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
}

.google-btn svg path {
    fill-opacity: 1 !important;
}

/* Google Sign-In Image Button Wrapper */
.google-btn-wrapper {
    text-align: center;
    margin: 0.5rem 0;
}

/* Google Button (New Design) */
.google-btn {
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.google-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Footer Links */
.footer-links {
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.2s;
}

/* =========================================
   User Profile Page Design
   ========================================= */

/* Grid Layout */
.user-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    /* gap-8 */
}

@media (min-width: 768px) {
    .user-profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .user-profile-top-header {
        grid-column: span 3;
    }

    .user-profile-sidebar {
        grid-column: span 1;
    }

    .user-profile-main {
        grid-column: span 2;
    }
}

/* Sidebar Styling */
.user-profile-sidebar h2 {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 600;
    /* font-semibold */
    color: #0f172a;
    /* text-slate-900 */
    margin-bottom: 0.25rem;
}

.user-profile-sidebar p {
    font-size: 0.875rem;
    /* text-sm */
    color: #64748b;
    /* text-slate-500 */
}

/* Security Box */
.security-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    /* rounded-xl */
    background-color: #eff6ff;
    /* bg-blue-50 */
    border: 1px solid #dbeafe;
    /* border-blue-100 */
}

.security-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1d4ed8;
    /* text-blue-700 */
    margin-bottom: 0.5rem;
}

.text-xs {
    font-size: 0.75rem;
}

/* Account Status Box */
.account-status-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background-color: rgba(255, 241, 242, 0.5);
    /* bg-rose-50/50 */
    border: 1px solid #ffe4e6;
    /* border-rose-100 */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #f43f5e;
    /* bg-rose-500 */
}

/* Profile Card (Main Form) */
.profile-card {
    background-color: #ffffff;
    border-radius: 1rem;
    /* rounded-2xl */
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Force Zone Title Link Styling - NUCLEAR OPTION */
body.path-group .view-location-zones .views-row h3 a,
body.path-group .view-location-zones .views-row .zone-title-link,
html body .view-location-zones h3 a {
    color: #0f172a !important;
    /* Slate-900 */
    text-decoration: none !important;
    border-bottom: none !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    /* 20px */
}

body.path-group .view-location-zones .views-row h3 a:hover,
body.path-group .view-location-zones .views-row .zone-title-link:hover,
html body .view-location-zones h3 a:hover {
    color: #2563eb !important;
    /* Blue-600 */
    text-decoration: none !important;
}

@media (min-width: 768px) {
    .profile-card {
        padding: 2rem;
    }
}

/* Input Styling (Refined) */
.input-field {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
}

.input-field:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-field.bg-slate-50 {
    background-color: #f8fafc;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* Actions */
.form-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}