
/*TAD*/
html,
body {
    min-height: 100%;
    margin: 0;
    background-color: #111827;
    color: #f9fafb;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Entire Blazor app surface */
#app,
.app,
.page,
main,
article {
    background-color: #111827;
    color: #f9fafb;
}

/* Page content area */
.content {
    background-color: #111827;
    color: #f9fafb;
    min-height: 100vh;
}

/* Common page container */
.dark-page {
    background-color: #111827;
    color: #f9fafb;
    min-height: 100vh;
    padding: 1.5rem;
}

/* Cards / panels / sections */
.dark-card {
    background-color: #1f2937;
    color: #f9fafb;
    border: 1px solid #374151;
    border-radius: 0.75rem;
    padding: 1rem;
}

/* Inputs not handled by Syncfusion */
input,
textarea,
select {
    background-color: #1f2937;
    color: #f9fafb;
    border-color: #374151;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    background: #1f2937 !important;
    background-color: #1f2937 !important;
    color: #f9fafb !important;
    border: 1px solid #374151 !important;
}

textarea.form-control:focus {
    background: #1f2937 !important;
    background-color: #1f2937 !important;
    color: #ffffff !important;
    /*border-color: #6366f1 !important;*/
    border-color: #22d3ee !important;
    box-shadow: none !important;
}

textarea.form-control::placeholder {
    color: #9ca3af !important;
}

/* Links */
a {
    color: #93c5fd;
}

    a:hover {
        color: #bfdbfe;
    }

/* Validation / messages */
.validation-message {
    color: #fca5a5;
}

/* commented out orginal - TAD */
/*html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}*/

/*ENT of TAD*/

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/********************Accordion arrow correction *********************/
/* Text always reserves space for the arrow */
.e-accordion .e-acrdn-header .e-acrdn-header-content {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-right: 24px !important; /* permanent arrow space */
    line-height: 1.35;
    text-align: center;
}

/* Arrow is pinned to the right and never participates in text width */
.e-accordion .e-acrdn-header .e-toggle-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    z-index: 2;
}

/***********************Sliders***********************/
/* BEST - green */
.best-slider .e-handle {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
}

.best-slider .e-range {
    background-color: #22c55e !important;
}

/* VERY GOOD - blue */
.very-good-slider .e-handle {
    background-color: #618368 !important;
    border-color: #618368 !important;
}

.very-good-slider .e-range {
    background-color: #618368 !important;
}

/* VERY GOOD - blue */
/*.very-good-slider .e-handle {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.very-good-slider .e-range {
    background-color: #3b82f6 !important;
}*/

/* GOOD - cyan */
.good-slider .e-handle {
    background-color: #06b6d4 !important;
    border-color: #06b6d4 !important;
}

.good-slider .e-range {
    background-color: #06b6d4 !important;
}

/* MARGINAL - amber */
.marginal-slider .e-handle {
    background-color: #f59e0b !important;  
    border-color: #f59e0b !important;
}

.marginal-slider .e-range {
    background-color: #f59e0b !important;
}

/* POOR - red */
.poor-slider .e-handle {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
}

.poor-slider .e-range {
    background-color: #ef4444 !important;
}

/*****************Home Page********************/
.home-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #020617, #0f172a, #1e293b);
    color: #f8fafc;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem 6vw;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 650px;
    color: #cbd5e1;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.9rem 1.6rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    color: white;
}

.btn-secondary {
    border: 1px solid #64748b;
    color: #f8fafc;
}

.hero-image img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 6vw 5rem;
}

.feature-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1.25rem;
    padding: 2rem;
}

    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .feature-card p {
        color: #cbd5e1;
    }

/***************menu in the FullPageLayout********************/


/***************************************/

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/****************Login page *********************/
/*.auth-page {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 2rem;
    padding-left: 2rem;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}*/
.auth-page {
    min-height: calc(100vh - 40px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    padding: 24px;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.auth-title {
    color: #f9fafb;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    color: #9ca3af;
    font-size: 14px;
    text-align: center;
    margin: 0 0 24px 0;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.auth-input {
    width: 100%;
    background: #111827;
    color: #f9fafb;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

    .auth-input:focus {
        outline: none;
        border-color: #6366f1;
    }

.auth-button {
    width: 100%;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

    .auth-button:hover {
        background: #6366f1;
    }

.auth-validation,
.auth-validation-message {
    color: #f87171;
    font-size: 14px;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d1d5db;
    font-size: 14px;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: #4f46e5;
}

.auth-links {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #818cf8;
    text-decoration: none;
}

.auth-links a:hover {
    color: #a5b4fc;
    text-decoration: underline;
}
/*************End of login page ********************/
/*************password reset page*******************/
.auth-page-internal {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 1rem;
    padding-left: 1rem;
    width: 100%;
    min-height: 100vh;
    box-sizing: border-box;
}

/*************FullPageLayout************************/
/*************FullPageLayout / Top Menu************************/

.auth-top-menu {
    width: 100vw;
    height: 100px;
    margin-left: calc(50% - 50vw);
    background: rgba(2, 6, 23, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    position: fixed;
    top: 0;
    /*left: 0;*/
    right: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: visible !important;
}

.auth-top-nav {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
}
/*.auth-top-nav {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px 0 74px;*/ /* moved 50px right */
    /*box-sizing: border-box;
}*/

.auth-top-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.auth-top-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    height: 100%;
    overflow: visible !important;
}

.auth-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
}

.auth-logo {
    display: block;
    height: 140px;
    width: auto;
    object-fit: contain;
    margin-top: 1px !important;
    border: none !important;
    outline: none !important;
}

.auth-top-link,
.auth-user-button {
    /*color: #22d3ee !important; TAD*/
    color: #818cf8 !important; /*TAD*/
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
}

    .auth-top-link:hover,
    .auth-user-button:hover {
        color: #67e8f9 !important;
        text-decoration: underline;
    }

/*************User Dropdown************************/

.auth-user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
    overflow: visible !important;
    z-index: 5001;
}

.auth-user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 6px 0;
    margin-top: 0;
    display: none;
    z-index: 6000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.auth-user-dropdown:hover .auth-user-menu {
    display: block;
}

.auth-user-menu-item {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    /*color: #22d3ee !important; TAD*/
    color: #818cf8 !important; /*TAD*/
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    padding: 10px 14px;
    cursor: pointer;
}

    .auth-user-menu-item:hover {
        background: #374151;
        /*color: #67e8f9 !important; TAD*/
        color: #a5b4fc !important; /*TAD*/
        text-decoration: none;
    }

.logout-menu-form {
    margin: 0;
    padding: 0;
}

/*************Main Page Content Offset************************/

.full-page-main {
    padding-top: 100px;
    min-height: 100vh;
}

.auth-layout-body {
    min-height: calc(100vh - 110px);
    background: #111827;
}

.tsfam-accordion-page {
    padding-top: 10px;
}

/*************Grid Rows************************/

.e-grid tr.e-row:not(.e-selectedrow):hover td.e-rowcell,
.e-grid tr.e-row:not(.e-selectedrow):hover td.e-templatecell {
    background: #827aff !important;
    background-color: #827aff !important;
    color: #ffffff !important;
}

.e-grid tr.e-row.e-selectedrow td.e-rowcell,
.e-grid tr.e-row.e-selectedrow td.e-templatecell,
.e-grid tr.e-row[aria-selected="true"] td.e-rowcell,
.e-grid tr.e-row[aria-selected="true"] td.e-templatecell {
    background: #4f46e5 !important;
    background-color: #4f46e5 !important;
    color: #ffffff !important;
}

.e-grid tr.e-row.e-selectedrow:hover td.e-rowcell,
.e-grid tr.e-row.e-selectedrow:hover td.e-templatecell,
.e-grid tr.e-row[aria-selected="true"]:hover td.e-rowcell,
.e-grid tr.e-row[aria-selected="true"]:hover td.e-templatecell {
    background: #4f46e5 !important;
    background-color: #4f46e5 !important;
    color: #ffffff !important;
}

/*************Grid Scrollbar************************/

.e-grid .e-content::-webkit-scrollbar,
.e-grid .e-headercontent::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.e-grid .e-content::-webkit-scrollbar-track,
.e-grid .e-headercontent::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 8px;
}

.e-grid .e-content::-webkit-scrollbar-thumb,
.e-grid .e-headercontent::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 8px;
    border: 2px solid #1f2937;
}

    .e-grid .e-content::-webkit-scrollbar-thumb:hover,
    .e-grid .e-headercontent::-webkit-scrollbar-thumb:hover {
        background: #818cf8;
    }

.e-grid .e-content,
.e-grid .e-headercontent {
    scrollbar-color: #6366f1 #444172;
    scrollbar-width: thin;
}

/*************Grid Buttons************************/

.e-grid .grid-action-button.btn,
.grid-action-button {
    border-radius: 4px !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    min-height: 26px !important;
    font-weight: 500 !important;
    width: 105px !important;
    text-align: center !important;
    box-shadow: none !important;
}
/******************Vertical line is spiling below the to bar, on the left edge of the logo*/
/* Prevent logo/image artifact from spilling below menu */

/* MENU */
.auth-top-menu {
    overflow: visible !important;
}

/* LEFT SIDE ONLY clips logo artifact */
.auth-top-left {
    overflow: hidden !important;
    display: flex;
    align-items: center;
    height: 100%;
}

/* LOGO */
/*.auth-logo {
    display: block;
    height: 140px;
    width: auto;
    object-fit: contain;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;*/
    /* trims left artifact */
    /*clip-path: inset(0 0 0 2px);
}*/
.auth-logo {
    display: block;
    height: 205px; /* same as menu height */
    width: auto;
    object-fit: contain;
    margin-top: 4px !important;
    padding-top:18px;
    padding-bottom:2px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    clip-path: inset(0 0 0 2px);
}

/* RIGHT SIDE remains visible for dropdown */
.auth-top-right,
.auth-user-dropdown,
.auth-user-menu {
    overflow: visible !important;
}

/*****************Login page top is hiden behind the menu - fix*****************/
.auth-page-internal {
    width: 100%;
    min-height: calc(100vh - 110px);
    box-sizing: border-box;
    padding-top: 0;
    padding-left: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.main-layout-content {
    padding-top: 110px;
    min-height: 100vh;
    background: #111827;
}

/*TAD*/
.manage-account-wrapper {
    padding-top: 100px !important;
}

.manage-layout-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    width: 100%;
    margin-top: 30px;
}

.manage-side-menu {
    min-width: 180px;
}

.manage-body {
    width: 100%;
    max-width: 720px;
}

.manage-account-wrapper {
    padding-top: 120px !important;
    max-width: 980px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px;
    padding-right: 24px;
}

.manage-layout-center {
    display: grid;
    grid-template-columns: 180px minmax(420px, 720px);
    gap: 48px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.manage-body {
    width: 100%;
    max-width: 720px;
}

.auth-page-internal {
    justify-content: center !important;
    padding-left: 0 !important;
}

/**************** Initial Seed Page ****************/

.initial-seed-page {
    margin-top: 40px;
    margin-left: 24px;
    margin-right: 24px;
    padding-bottom: 40px;
}

    /* section headers inside dialog */
    .initial-seed-page .mt-3 {
        margin-top: 15px;
        margin-bottom: 2px;
        text-align: center;
    }

    /* grid rows cursor */
    .initial-seed-page .e-gridcontent {
        cursor: pointer;
    }

    /* checkbox border */
    .initial-seed-page .e-checkbox-wrapper .e-frame {
        background-color: white !important;
        border-color: black !important;
    }

    /* checkbox checked state */
    .initial-seed-page .e-checkbox-wrapper .e-frame.e-icons.e-check {
        color: black;
        background: green !important;
    }

    /***********Menu item: User Name in White color=****************/
.auth-user-button {
    color: #ffffff !important;
}

.auth-user-button:hover {
    color: #ffffff !important;
}

.auth-top-right {
    transform: translateX(-50px);
}

/****************Hamburger Menu******************/
/* HAMBURGER BUTTON */
.hamburger-button {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0 16px;
}

/* MOBILE MENU */
.mobile-menu {
    display: flex;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.97);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-link {
    color: white;
    text-decoration: none;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

    .mobile-link:hover {
        color: #a78bfa;
    }

.mobile-logout-form {
    margin: 0;
}

.mobile-logout-button {
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
}

.auth-top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    z-index: 100000;
}

/***************************latest additino*************************/
.mobile-menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}

.mobile-menu-toggle:checked ~ .mobile-menu {
    display: flex;
}

.hamburger-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 900px) {
    .desktop-menu {
        display: none;
    }

    .mobile-top-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 14px;
    }

    .hamburger-button {
        display: flex;
    }
}

/*******************end of latest addtion***************************/


/* RESPONSIVE */
@media (max-width: 900px) {

    .desktop-menu {
        display: none;
    }

    .hamburger-button {
        display: block;
    }

    .auth-top-nav {
        justify-content: space-between;
    }
}

/*.mobile-top-right {
    display: none;
    align-items: center;
    gap: 14px;
}*/
.mobile-top-right {
    display: none;
    align-items: center;
    justify-content: flex-end;
    min-width: 70px;
    min-height: 70px;
    flex-shrink: 0;
}

.mobile-top-user {
    color: white;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .desktop-menu {
        display: none;
    }

    .mobile-top-right {
        display: flex;
    }

    .hamburger-button {
        display: flex;
    }
}

/***************Maintenance Page**************/
/* FULL SCREEN WRAPPER */
.maintenance-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    overflow: hidden;
    background: linear-gradient(rgba(2,6,23,.92), rgba(2,6,23,.92)), url('/images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 99999;
}

/* CENTER CARD */
.maintenance-card {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    border-radius: 24px;
    background: rgba(15,23,42,.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148,163,184,.18);
    box-shadow: 0 25px 60px rgba(0,0,0,.45);
}

/* LOGO */
.maintenance-logo {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto 24px auto;
}

/* TITLE */
.maintenance-title {
    margin: 0 0 16px 0;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

/* TEXT */
.maintenance-text {
    margin: 0 0 28px 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.7;
    text-align: center;
}

/* BUTTON */
.maintenance-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    background: #6366f1;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    transition: all .2s ease;
}

    .maintenance-home-link:hover {
        background: #7c3aed;
        transform: translateY(-2px);
    }
    /**************Maintenace page take 2*************/
.maintenance-wrapper {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: #020617;
}

.maintenance-card {
    max-width: 620px;
    width: 100%;
    text-align: center;
    padding: 42px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 25px 60px rgba(0,0,0,.45);
}

.maintenance-logo {
    width: 160px;
    display: block;
    margin: 0 auto 28px auto;
}

.maintenance-card h1 {
    color: white;
    margin: 0 0 16px 0;
    font-size: 2.4rem;
}

.maintenance-card p {
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/****************Line separator***********************/
.section-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient( to right, transparent, rgba(192,192,192,0.65), transparent );
    margin: 22px 0;
}
/*.e-grid-dialog.e-dialog {
    top: 110px !important;
}
.e-grid-dialog.e-dialog {
    transform: translateY(110px) !important;
}*/

/****************Mobile Friendly*****************************/
/*.attribute-mobile-form {
    width: 100%;
} TAD*/

.attribute-title {
    text-align: center;
}

.attribute-scale {
    text-align: center;
}

.attribute-info {
    margin-left: 100px;
    margin-right: 100px;
    margin-top: 10px;
    border-top: 1px solid silver;
    padding-top: 5px;
    padding-bottom: 5px;
}

.attribute-section {
    margin-top: 15px;
}

.include-row {
    margin-bottom: 10px;
}

    .include-row label {
        padding: 30px 10px 5px 0;
    }

.range-card {
    margin-top: -10px; /* was 15px */
    margin-bottom: 0;
    /*margin-top: 15px;
    margin-bottom: 0;*/
}

.range-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.range-inputs {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 24px;
    margin-bottom: 8px;
}

.mobile-label {
    display: none;
}

.range-minmax {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 4px;
    margin-bottom: 18px;
}

.unknown-duration {
    margin-top: 8px;
    text-align: right;
}

.comments-box {
    margin-top: 8px;
    margin-bottom: 12px;
}

/*.form-button-row {
    display: flex;
    gap: 8px;
} TAD*/

/* MOBILE */
@media (max-width: 768px) {

    .attribute-info {
        margin-left: 10px;
        margin-right: 10px;
    }

    .attribute-section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .range-card {
        border-top: 1px solid rgba(192, 192, 192, 0.45);
        padding-top: 14px;
    }

    .range-inputs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mobile-label {
        display: block;
        font-size: 0.85rem;
        margin-bottom: 3px;
    }

    .range-inputs .e-numerictextbox,
    .range-inputs .e-input-group {
        width: 100% !important;
    }

    .range-minmax {
        font-size: 0.82rem;
        margin-bottom: 16px;
    }

    .unknown-duration {
        text-align: left;
    }

    .comments-box textarea {
        font-size: 16px;
    }

    .form-button-row {
        justify-content: center;
        flex-wrap: wrap;
    }

       /* .form-button-row .e-btn {
            min-width: 120px;
        } TAD*/
}

.include-row {
    display: flex;
    align-items: center;
}

    .include-row label {
        position: relative;
        top: -4px;
    }

.include-switch {
    margin-left: 45px;
}

/* DESKTOP ONLY */
@media (min-width: 769px) {

    .range-card {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

        .range-card .e-slider-container {
            width: 100% !important;
            max-width: 100%;
        }
}

/***********************AdminSite Page*******************************************/
.user-management-page {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    overflow-x: hidden;
}

.admin-card {
    width: 100%;
    max-width: 100%;
}

.user-management-page h4,
.user-management-page h5 {
    margin-bottom: 12px;
}

.section-divider {
    margin: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.maintenance-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.mobile-grid-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grid-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.grid-action-button {
    white-space: nowrap;
}

.dialog-button-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.dialog-button-row-between {
    justify-content: space-between;
}

.active-checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.user-management-page textarea.form-control,
.user-management-page input.form-control,
.user-management-page select.form-control {
    max-width: 100%;
}

.user-management-page .e-grid {
    max-width: 100%;
}

.user-management-page .e-toolbar,
.user-management-page .e-pager {
    overflow-x: auto;
}

.user-management-page .e-dialog {
    max-width: 95vw !important;
}

.user-management-page .e-dlg-content {
    max-height: 70vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .user-management-page {
        padding: 12px;
    }

        .user-management-page .row {
            margin-left: 0;
            margin-right: 0;
        }

        .user-management-page [class*="col-"] {
            padding-left: 0;
            padding-right: 0;
        }

        .maintenance-buttons .btn,
        .user-management-page > .admin-card .btn {
            width: 100%;
        }

    .dialog-button-row .btn {
        width: 100%;
    }

    .dialog-button-row-between {
        justify-content: center;
    }

    .user-management-page .e-dialog {
        width: 95vw !important;
        left: 2.5vw !important;
    }

    .user-management-page .e-dlg-content,
    .user-management-page .e-footer-content {
        padding: 12px !important;
    }

    .role-grid-scroll .e-grid {
        min-width: 430px;
    }

    .user-grid-scroll .e-grid {
        min-width: 1250px;
    }

    .dependencies-grid-scroll .e-grid {
        min-width: 850px;
    }
}

/*************Hamburger Menu with full page layout***************************/
.main-sidebar {
    margin-top: 110px;
}

.main-mobile-menu-toggle {
    display: none;
}

.main-hamburger-button {
    display: none;
    font-size: 34px;
    color: white;
    cursor: pointer;
    margin-left: auto;
    padding: 6px 10px;
    user-select: none;
}

@media (max-width: 768px) {

    /* hide sidebar */
    .sidebar {
        display: none;
    }

    /* hamburger visible */
    .main-hamburger-button {
        display: block;
    }

    .auth-top-nav {
        position: relative;
    }

    /* hide desktop menu */
    .auth-top-right {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        width: min(280px, calc(100vw - 24px));
        flex-direction: column;
        align-items: stretch;
        background: rgba(2, 6, 23, 0.98);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 14px;
        padding: 12px;
        z-index: 99999;
        box-shadow: 0 12px 28px rgba(0,0,0,.45);
        backdrop-filter: blur(10px);
    }

    /* OPEN MENU */
    .main-mobile-menu-toggle:checked ~ .auth-top-right {
        display: flex;
    }

    .auth-top-link,
    .auth-user-button {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }

    .auth-user-dropdown {
        width: 100%;
    }

    /* make dropdown work on mobile */
    .auth-user-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 8px;
        border-radius: 10px;
    }

    .auth-user-dropdown:hover .auth-user-menu,
    .auth-user-dropdown:focus-within .auth-user-menu {
        display: block;
    }

    main article.content {
        margin-top: 95px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/********************FulPageLayout Styling*******************************/
.mobile-menu-toggle {
    display: none;
}

.mobile-top-right {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-top-right {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .mobile-top-user {
        color: white;
        font-size: 14px;
        white-space: nowrap;
    }

    .hamburger-button {
        display: block;
        font-size: 34px;
        color: white;
        cursor: pointer;
        padding: 6px 10px;
        line-height: 1;
        user-select: none;
    }

    .auth-top-menu {
        position: fixed;
        overflow: visible;
        z-index: 99999;
    }

    .auth-top-nav {
        position: relative;
    }

    .mobile-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        width: min(280px, calc(100vw - 24px));
        flex-direction: column;
        align-items: stretch;
        background: rgba(2, 6, 23, 0.98);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 14px;
        padding: 12px;
        z-index: 100000;
        box-shadow: 0 12px 28px rgba(0,0,0,.45);
        backdrop-filter: blur(10px);
    }

    #mobile-menu-toggle:checked ~ .mobile-menu {
        display: flex;
    }

    .mobile-link {
        display: block;
        width: 100%;
        color: white;
        text-decoration: none;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 15px;
        text-align: left;
        background: transparent;
        border: none;
    }

        .mobile-link:hover {
            background: rgba(255, 255, 255, 0.10);
            color: white;
        }

    .mobile-logout-form {
        width: 100%;
        margin: 0;
    }

    .mobile-logout-button {
        cursor: pointer;
    }
}

@media (max-width: 768px) {

    .auth-top-menu .auth-top-right a,
    .auth-top-menu .auth-top-right button,
    .auth-top-menu .mobile-menu a,
    .auth-top-menu .mobile-menu button,
    .auth-top-menu .fullpage-mobile-menu a,
    .auth-top-menu .fullpage-mobile-menu button {
        color: #827aff !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
    }
}

@media (max-width: 768px) {

    .auth-top-menu .auth-top-right {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding-bottom: 18px !important;
    }

    .auth-top-menu .auth-user-dropdown {
        display: block !important;
        width: 100% !important;
        position: static !important;
    }

    .auth-top-menu .auth-user-button {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        text-align: left !important;
        color: #827aff !important;
        background: transparent !important;
    }
}

/*****************Mobile Menu shifting fix*************************/
@media (max-width: 768px) {

    .mobile-top-right,
    .auth-top-nav > .main-hamburger-button {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        height: 100% !important;
        min-width: 54px !important;
    }

    .hamburger-button,
    .main-hamburger-button {
        width: 54px !important;
        height: 54px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 34px !important;
        line-height: 1 !important;
        color: white !important;
        cursor: pointer;
    }
}

@media (max-width: 768px) {

    .mobile-top-right {
        margin-left: auto !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
    }

        .mobile-top-right .hamburger-button {
            margin-right: 0 !important;
        }
}

@media (max-width: 768px) {

    .auth-top-menu .auth-top-right {
        right: 12px !important;
        left: auto !important;
    }

    .auth-top-menu .mobile-menu {
        right: 12px !important;
        left: auto !important;
    }
}

@media (max-width: 768px) {

    .auth-top-menu .auth-top-nav {
        position: relative !important;
    }

    .auth-top-menu .auth-top-right {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 12px !important;
        left: auto !important;
        width: min(280px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }

    .auth-top-menu .mobile-menu {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        right: 12px !important;
        left: auto !important;
        width: min(280px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }
}

/******************Home page***************************/
.home-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.home-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.home-banner-image {
    width: 100vw;
    height: 66vh;
    min-height: 420px;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.home-hero-text {
    width: 100%;
    max-width: 1280px;
    margin: 15px auto 0 auto;
    padding: 5px 24px;
    text-align: center;
    /*border:1px solid red;*/
}
/*.home-hero-text {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 36px 20px;
    text-align: center !important;
}

    .home-hero-text h1 {
        font-size: clamp(1.9rem, 4vw, 3.4rem);
        line-height: 1.08;
        font-weight: 800;
        margin: 0 0 18px 0;
        text-align: center !important;
        color: white;
    }

        .home-hero-text h1 span {
            display: block;
            color: #60a5fa;
        }

    .home-hero-text p {
        max-width: 700px;
        margin: 0 auto;
        color: #d1d5db;
        font-size: clamp(1rem, 1.8vw, 1.15rem);
        line-height: 1.6;
        text-align: center !important;
    }

@media (max-width: 768px) {
    .home-hero-text {
        padding: 24px 18px 28px 18px;
    }

        .home-hero-text h1 {
            font-size: clamp(1.8rem, 7vw, 2.4rem);
            margin-bottom: 14px;
        }

        .home-hero-text p {
            font-size: 1rem;
        }
}*/

.home-features {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 64px 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.home-feature-card {
    background: #1f2937;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

    .home-feature-card h3 {
        color: #60a5fa;
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .home-feature-card p {
        color: #d1d5db;
        line-height: 1.6;
        margin: 0;
    }

@media (max-width: 768px) {
    .home-banner-image {
        height: 42vh;
        min-height: 260px;
        object-position: center center;
    }

    .home-hero-text {
        padding: 34px 16px 28px 16px;
        margin-top: 6px;
    }

        .home-hero-text h1 {
            margin-bottom: 18px;
        }

    .home-features {
        grid-template-columns: 1fr;
        padding: 0 16px 40px 16px;
        gap: 16px;
    }

    .home-feature-card {
        padding: 24px;
        border-radius: 18px;
    }
}

@media (max-width: 420px) {
    .home-banner-image {
        height: 36vh;
        min-height: 220px;
    }

    .home-hero-text {
        padding-top: 28px;
    }

    .home-feature-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {

    .auth-top-nav {
        padding-left: 0 !important;
    }

    .auth-top-left {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .auth-logo-link {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .auth-logo {
        margin-left: 0 !important;
    }
}

/****************P convert to modal******************/
.account-manage-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.auth-page-internal.change-password-page {
    width: 100%;
    min-height: calc(100vh - 110px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.change-password-page .auth-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 20px;
}

.change-password-page .auth-title,
.change-password-page .auth-subtitle {
    text-align: center;
}

.change-password-page .auth-field {
    width: 100%;
    margin-bottom: 18px;
}

.change-password-page .auth-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.change-password-page .auth-button {
    width: 100%;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .auth-page-internal.change-password-page {
        min-height: calc(100vh - 90px);
        padding: 24px 12px;
    }

    .change-password-page .auth-card {
        max-width: 100%;
        padding: 22px 16px;
        border-radius: 16px;
    }

    .change-password-page .auth-title {
        font-size: 1.65rem;
        margin-bottom: 8px;
    }

    .change-password-page .auth-subtitle {
        font-size: 0.95rem;
        line-height: 1.45;
        margin-bottom: 20px;
    }

    .change-password-page .auth-label {
        font-size: 0.95rem;
    }

    .change-password-page .auth-input {
        min-height: 44px;
        font-size: 1rem;
    }

    .change-password-page .auth-button {
        min-height: 46px;
        font-size: 1rem;
    }
}

.change-password-page .auth-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 18px 14px;
    border-radius: 16px;
}
