:root {
        --theme-green: #176b3b;
        --theme-green-hover: #104629;
        --theme-green-dark: #104629;
        --theme-text-dark: #1c2b21;
        --theme-text-muted: #647369;
        --theme-border: #e0e9e2;
    }

    html, body {
        margin: 0;
        padding: 0;
        background-color: #f4faf5 !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        -webkit-font-smoothing: antialiased;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    #container, body #container {
        width: 95% !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
        flex: 1 0 auto;
        box-sizing: border-box !important;
    }

    /* Centered Top Strip */
    .esewa-top-strip {
        background: #0f172a;
        color: #94a3b8;
        font-size: 12.5px;
        padding: 8px 0;
        border-bottom: 1px solid #1e293b;
    }

    .esewa-top-inner {
        width: 95%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        position: relative;
    }

    .esewa-contact-center {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .esewa-contact-center a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #cbd5e1;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.15s ease;
    }

    .esewa-contact-center a:hover {
        color: #ffffff;
    }

    .svg-icon {
        width: 14px;
        height: 14px;
        fill: currentColor;
        flex-shrink: 0;
        display: inline-block;
    }

    .esewa-contact-center .svg-icon {
        color: #e5a93b;
    }

    .esewa-social-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding-left: 12px;
        border-left: 1px solid #334155;
    }

    .esewa-social-btn {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.08);
        color: #cbd5e1 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .esewa-social-btn .svg-icon {
        width: 12px;
        height: 12px;
        color: #cbd5e1;
        transition: color 0.2s;
    }

    .esewa-social-btn:hover {
        background: var(--theme-green);
        transform: translateY(-1px);
    }

    .esewa-social-btn:hover .svg-icon {
        color: #ffffff;
    }

    .top-strip-divider {
        color: #475569;
        font-size: 11px;
    }

    .esewa-auth-float {
        position: absolute;
        right: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .esewa-auth-user {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #1e293b;
        color: #f1f5f9;
        padding: 3px 9px;
        border-radius: 999px;
        font-weight: 600;
        font-size: 11px;
    }

    .esewa-auth-float a {
        color: #cbd5e1;
        text-decoration: none;
        font-size: 11.5px;
    }

    .esewa-auth-float a:hover {
        color: #ffffff;
    }

    /* Clean Navbar */
    .esewa-navbar {
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding: 14px 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    }

    .esewa-navbar-inner {
        width: 95%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .esewa-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none !important;
    }

    .esewa-brand img {
        height: 38px;
        width: auto;
        object-fit: contain;
        display: block;
    }

    .esewa-brand-divider {
        width: 1px;
        height: 26px;
        background: #d1d5db;
    }

    .esewa-brand-tagline {
        font-size: 18px;
        font-weight: 600;
        color: var(--theme-text-dark);
        letter-spacing: -0.2px;
    }

    .esewa-right-cluster {
        display: flex;
        align-items: center;
        gap: 28px;
    }

    /* Nav Links with Hover Dropdown Menus */
    .esewa-nav-links {
        display: flex;
        align-items: center;
        gap: 22px;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .esewa-nav-links > li {
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
    }

    .esewa-nav-links > li > a {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #4b5563 !important;
        text-decoration: none !important;
        transition: color 0.15s ease !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 8px 0 !important;
    }

    .esewa-nav-links > li:hover > a,
    .esewa-nav-links > li > a.active {
        color: var(--theme-green) !important;
    }

    .dropdown-chevron {
        font-size: 10px;
        color: #9ca3af;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .esewa-nav-links > li:hover .dropdown-chevron {
        transform: rotate(180deg);
        color: var(--theme-green);
    }

    /* CSS Hover Dropdown Panel */
    .esewa-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
        padding: 8px 0;
        margin-top: 6px;
        list-style: none !important;
        visibility: hidden;
        opacity: 0;
        transform: translateY(8px);
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        z-index: 1010;
    }

    /* Invisible bridge to prevent accidental menu closure on hover gap */
    .esewa-dropdown-menu::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }

    .esewa-nav-links > li:hover .esewa-dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .esewa-dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .esewa-dropdown-menu a {
        display: block !important;
        padding: 9px 18px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        color: #374151 !important;
        text-decoration: none !important;
        transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease !important;
    }

    .esewa-dropdown-menu a:hover {
        background: #f0fdf4 !important;
        color: var(--theme-green-dark) !important;
        padding-left: 22px !important;
    }

    /* Action Buttons */
    .esewa-buttons-group {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .esewa-btn-outline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 18px;
        border: 1px solid var(--theme-green);
        border-radius: 6px;
        background: transparent;
        color: var(--theme-green) !important;
        font-size: 12.5px;
        font-weight: 650;
        letter-spacing: 0.3px;
        text-decoration: none !important;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .esewa-btn-outline:hover {
        background: rgba(72, 187, 68, 0.08);
    }

    .esewa-btn-solid {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 18px;
        border: 1px solid var(--theme-green);
        border-radius: 6px;
        background: var(--theme-green);
        color: #ffffff !important;
        font-size: 12.5px;
        font-weight: 700;
        letter-spacing: 0.4px;
        text-decoration: none !important;
        transition: all 0.2s ease;
        box-shadow: 0 1px 3px rgba(72, 187, 68, 0.2);
        white-space: nowrap;
    }

    .esewa-btn-solid:hover {
        background: var(--theme-green-hover);
        border-color: var(--theme-green-hover);
    }

    /* Inline osTicket alerts are hidden; messages appear in one centered popup */
    .error_bar, #msg_error,
    .warning_bar, #msg_warning,
    .notice_bar, #msg_notice {
        display: none !important;
    }

    .gsps-alert-backdrop {
        position: fixed;
        inset: 0;
        z-index: 999990;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: rgba(31, 41, 55, .34);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }
    .gsps-alert-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }
    .gsps-alert-popup {
        position: relative;
        width: min(430px, 100%);
        padding: 30px 30px 25px;
        border: 1px solid var(--theme-border);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
        color: var(--theme-text-dark);
        text-align: center;
        font-family: inherit;
        transform: translateY(12px) scale(.98);
        transition: transform .22s ease;
    }
    .gsps-alert-backdrop.is-visible .gsps-alert-popup {
        transform: translateY(0) scale(1);
    }
    .gsps-alert-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        margin: 0 auto 16px;
        border: 1px solid #d5e7d9;
        border-radius: 16px;
        background: #eaf4ed;
        color: var(--theme-green-dark);
        font-size: 25px;
        font-weight: 800;
    }
    .gsps-alert-title {
        margin: 0 0 9px;
        color: var(--theme-text-dark);
        font-size: 21px;
        font-weight: 750;
        line-height: 1.3;
        letter-spacing: -.3px;
    }
    .gsps-alert-message {
        margin: 0;
        color: var(--theme-text-muted);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }
    .gsps-alert-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 112px;
        min-height: 40px;
        margin-top: 22px;
        padding: 9px 20px;
        border: 1px solid var(--theme-green);
        border-radius: 7px;
        background: var(--theme-green);
        color: #ffffff;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: background .15s ease, transform .15s ease;
    }
    .gsps-alert-close:hover {
        background: var(--theme-green-hover);
        transform: translateY(-1px);
    }
    .gsps-alert-timer {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 3px;
        overflow: hidden;
        border-radius: 0 0 16px 16px;
        background: #eaf4ed;
    }
    .gsps-alert-timer::after {
        display: block;
        width: 100%;
        height: 100%;
        background: var(--theme-green);
        content: "";
        transform-origin: left;
        animation: gsps-alert-countdown 5s linear forwards;
    }
    @keyframes gsps-alert-countdown {
        to { transform: scaleX(0); }
    }
    @media (max-width: 480px) {
        .gsps-alert-popup { padding: 25px 20px 22px; }
        .gsps-alert-title { font-size: 19px; }
        .gsps-alert-message { font-size: 13.5px; }
    }

    .gsps-lang-row {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    /* Full-width osTicket content area */
    html body #container {
        width: min(1400px, 96%) !important;
        max-width: 1400px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    html body #container #content,
    html body #content {
        display: block !important;
        float: none !important;
        clear: both !important;
        width: 100% !important;
        max-width: 1100px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        padding: 24px 0 40px !important;
        min-height: 480px;
        box-sizing: border-box !important;
    }

    html body #content > .gsps-ticket-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 1100px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    @media (max-width: 768px) {
        html body #container {
            width: 100% !important;
            padding-left: 12px !important;
            padding-right: 12px !important;
        }
        html body #container #content,
        html body #content {
            width: 100% !important;
            max-width: 100% !important;
            padding-top: 16px !important;
        }
    }

    @media (max-width: 1024px) {
        .esewa-auth-float {
            position: static;
            margin-top: 6px;
        }
        .esewa-top-inner {
            flex-direction: column;
        }
    }

    @media (max-width: 900px) {
        .esewa-nav-links {
            display: none !important;
        }
    }

    @media (max-width: 640px) {
        .esewa-brand-tagline {
            font-size: 15px;
        }
        .esewa-btn-outline {
            display: none;
        }
        .esewa-btn-solid {
            padding: 6px 12px;
            font-size: 11.5px;
        }
    }

    /* GSPS Professional Header Refresh */
    .esewa-top-strip { background:#123b2a; border:0; color:#dcebe1; padding:9px 0; }
    .esewa-top-inner { max-width:1240px; width: min(94%, 1240px); padding:0 8px; }
    .esewa-contact-center { gap:15px; }
    .esewa-contact-center a { color:#e7f2ea; font-size:12px; }
    .esewa-contact-center a:hover { color:#ffffff; }
    .esewa-contact-center .svg-icon { color:#a9d8b5; }
    .esewa-social-group { border-left-color:rgba(255,255,255,.2); }
    .esewa-social-btn { width:27px; height:27px; border-radius:50%; background:rgba(255,255,255,.12); }
    .esewa-navbar { position:relative; top:auto; background:rgba(255,255,255,.97); border-bottom:1px solid #dce9df; padding:15px 0; box-shadow:0 5px 20px rgba(24,66,39,.055); }
    .esewa-navbar-inner { max-width:1240px; width:min(94%,1240px); padding:0 8px; gap:24px; }
    .esewa-brand { gap:13px; min-width:235px; }
    .esewa-brand img { height:46px; max-width:68px; }
    .esewa-brand-divider { height:34px; background:#d6e3d9; }
    .esewa-brand-tagline { font-size:17px; font-weight:750; letter-spacing:-.35px; color:#173c29; }
    .esewa-right-cluster { gap:22px; }
    .esewa-nav-links { gap:19px; }
    .esewa-nav-links > li > a { color:#344b3b !important; font-size:13px !important; font-weight:650 !important; padding:11px 0 !important; }
    .esewa-nav-links > li:hover > a,.esewa-nav-links > li > a.active { color:#176b3b !important; }
    .esewa-dropdown-menu { border-color:#dce9df; border-radius:10px; margin-top:2px; box-shadow:0 16px 36px rgba(20,55,33,.13); }
    .esewa-dropdown-menu a:hover { background:#eff8f1 !important; }
    .esewa-buttons-group { gap:9px; }
    .esewa-btn-outline,.esewa-btn-solid { min-height:39px; padding:0 15px; border-radius:7px; font-size:11px; letter-spacing:.25px; font-weight:750; }
    .esewa-btn-outline { border-color:#b9d5c0; color:#176b3b !important; background:#f7fbf8; }
    .esewa-btn-outline:hover { background:#eaf5ed; border-color:#176b3b; }
    .esewa-btn-solid { background:#176b3b; border-color:#176b3b; box-shadow:0 4px 10px rgba(23,107,59,.16); }
    .esewa-btn-solid:hover { background:#104629; border-color:#104629; }
    .gsps-mobile-toggle { display:none; width:40px; height:40px; border:1px solid #d7e5da; border-radius:8px; background:#f5faf6; color:#176b3b; font-size:21px; cursor:pointer; align-items:center; justify-content:center; }
    #content { padding-top:28px !important; }
    @media (max-width:1120px) {
        .esewa-navbar-inner { flex-wrap:wrap; }
        .esewa-right-cluster { gap:14px; }
        .esewa-nav-links { gap:13px; }
        .esewa-nav-links > li > a { font-size:12px !important; }
        .esewa-btn-solid { padding:0 11px; }
    }
    @media (max-width:900px) {
        .esewa-navbar-inner { justify-content:space-between; }
        .gsps-mobile-toggle { display:inline-flex; margin-left:auto; }
        .esewa-right-cluster { display:none; width:100%; flex-direction:column; align-items:stretch; gap:14px; padding:14px 0 4px; }
        .esewa-right-cluster.is-open { display:flex; }
        .esewa-nav-links { display:flex !important; flex-direction:column; align-items:stretch; gap:0; width:100%; }
        .esewa-nav-links > li { border-top:1px solid #edf2ee; }
        .esewa-nav-links > li > a { display:flex !important; justify-content:space-between; padding:12px 4px !important; font-size:14px !important; }
        .esewa-dropdown-menu { position:static; display:none; visibility:visible; opacity:1; transform:none; pointer-events:auto; box-shadow:none; border:0; border-radius:0; margin:0; padding:0 0 8px 12px; }
        .esewa-nav-links > li:focus-within .esewa-dropdown-menu,.esewa-nav-links > li:hover .esewa-dropdown-menu { display:block; }
        .esewa-dropdown-menu::before { display:none; }
        .esewa-buttons-group { padding-top:8px; border-top:1px solid #edf2ee; }
        .esewa-btn-outline { display:inline-flex; }
        .esewa-btn-solid { flex:1; }
    }
    @media (max-width:640px) {
        .esewa-top-strip { padding:8px 0; }
        .esewa-top-inner { width:94%; }
        .esewa-contact-center { gap:8px 12px; }
        .esewa-contact-center a { font-size:11px; }
        .esewa-social-group { padding-left:9px; gap:6px; }
        .esewa-brand { min-width:0; gap:9px; }
        .esewa-brand img { height:40px; max-width:56px; }
        .esewa-brand-tagline { font-size:15px; }
        .esewa-brand-divider { height:27px; }
        .esewa-buttons-group { flex-wrap:wrap; }
        .esewa-btn-outline,.esewa-btn-solid { flex:1; padding:0 9px; font-size:10px; }
        #container { width:100% !important; padding:0 14px !important; }
    }
    @media (prefers-reduced-motion:reduce) {
        .esewa-nav-links *, .esewa-dropdown-menu, .esewa-btn-outline, .esewa-btn-solid { transition:none !important; }
    }

/* GSPS shared refinements — kept separate from osTicket core styles */
html, body {
    color: #26352b;
    background: #f5f8f6 !important;
}
.esewa-top-strip,
.esewa-navbar,
.esewa-navbar * {
    box-sizing: border-box;
}
#container {
    flex: 1 0 auto;
}
#gsps-client-footer {
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .esewa-nav-links > li:focus-within > .esewa-dropdown-menu {
        display: block;
    }
}


/* Green Society Public School - Modern osTicket Client Footer */
#gsps-client-footer,
#gsps-client-footer * { 
    box-sizing: border-box; 
}

#gsps-client-footer {
    clear: both;
    /* Matches your main content width and centers it cleanly */
    width: min(1180px, calc(100% - 48px));
    margin: 50px auto;
    color: #e2ede5;
    background: linear-gradient(135deg, #0d3320 0%, #123f28 100%);
    font-family: inherit;
    border-top: 4px solid #1e6b43;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

#gsps-client-footer .gsps-footer-inner {
    width: 100%;
    margin: 0 auto;
    padding: 44px 40px 36px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 30px;
}

#gsps-client-footer .gsps-footer-col h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#gsps-client-footer .gsps-footer-col h3 svg {
    width: 18px;
    height: 18px;
    fill: #4ade80;
    flex-shrink: 0;
}

#gsps-client-footer p {
    margin: 0 0 10px;
    color: #cbdad0;
    font-size: 13.5px;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

#gsps-client-footer p svg {
    width: 16px;
    height: 16px;
    fill: #86efac;
    margin-top: 3px;
    flex-shrink: 0;
}

#gsps-client-footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

#gsps-client-footer a:hover { 
    color: #86efac; 
    text-decoration: underline; 
}

#gsps-client-footer .gsps-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 9px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.25s ease;
}

#gsps-client-footer .gsps-footer-link:hover {
    background: #ffffff;
    color: #123f28;
    border-color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Social Media Icons Styling */
#gsps-client-footer .gsps-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

#gsps-client-footer .gsps-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.25s ease;
}

#gsps-client-footer .gsps-social-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

#gsps-client-footer .gsps-social-btn:hover {
    background: #4ade80;
    border-color: #4ade80;
    color: #123f28;
    transform: translateY(-2px);
}

#gsps-client-footer .gsps-social-btn:hover svg {
    fill: #123f28;
}

#gsps-client-footer .gsps-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #092617;
}

#gsps-client-footer .gsps-footer-bottom-inner {
    width: 100%;
    min-height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 16px 40px;
}

#gsps-client-footer .gsps-footer-bottom p {
    margin: 0;
    color: #abc9b4;
    font-size: 12.5px;
}

#gsps-client-footer .gsps-footer-credit a {
    color: #86efac;
    font-weight: 600;
}

/* Hide default osTicket cluttered footer text cleanly */
#footer {
    display: none !important;
}

@media (max-width: 900px) {
    #gsps-client-footer .gsps-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    #gsps-client-footer {
        width: calc(100% - 24px);
    }
    #gsps-client-footer .gsps-footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 20px;
    }
    #gsps-client-footer .gsps-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 20px;
    }
}

/* Footer compatibility: retain the custom GSPS footer and suppress the stock footer */
#footer:not(#gsps-client-footer) {
    display: none !important;
}

