@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color, var(--dxds-color-content-neutral-default-rest));
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}

.icon {
    width: var(--icon-width);
    height: var(--icon-height);
    background-color: currentcolor;
    mask-position: center center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-image: var(--icon-mask-image);
    mask-image: var(--icon-mask-image);
}

/* ============================================================================
   GsmPlatform — vibrant telecom theme
   ========================================================================== */
:root {
    --gp-green: #10b981;
    --gp-green-dark: #047857;
    /* Single-hue green scheme: keep the legacy --gp-blue* names pointed at green
       so any accent that referenced them stays on-palette. */
    --gp-blue: #10b981;
    --gp-blue-dark: #047857;
    --gp-ink: #06231a;
    --gp-muted: #55665e;
    --gp-surface: #ffffff;
    --gp-bg-soft: #f2faf6;
    --gp-radius: 16px;
    --gp-shadow: 0 10px 30px rgba(6, 35, 26, 0.10);
    --gp-shadow-sm: 0 4px 14px rgba(6, 35, 26, 0.07);
    --gp-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);

    /* Recolor the DevExpress "bootstrap-external" theme's accent to brand green.
       Its controls read var(--bs-primary)/(--bs-primary-rgb) from the external
       Bootstrap CSS; site.css loads after it, so these overrides win. Emerald-600
       keeps white button text legible. */
    --bs-primary: #059669;
    --bs-primary-rgb: 5, 150, 105;
}

/* Shared card + button primitives, usable on any page ---------------------- */
.gp-card {
    background: var(--gp-surface);
    border: 1px solid rgba(11, 27, 43, 0.06);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow-sm);
    padding: 1.25rem 1.5rem;
}

/* Lift Bootstrap cards used across the customer/admin pages. */
.card {
    border: 1px solid rgba(11, 27, 43, 0.06) !important;
    border-radius: var(--gp-radius) !important;
    box-shadow: var(--gp-shadow-sm);
}

.gp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.gp-btn:hover { transform: translateY(-1px); }

.gp-btn-primary { background: var(--gp-gradient); color: #fff; box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35); }
.gp-btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(16, 185, 129, 0.45); }
.gp-btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.gp-btn-ghost:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.gp-btn-light { background: #fff; color: var(--gp-blue-dark); }
.gp-btn-light:hover { color: var(--gp-blue-dark); }

/* Logo preview in admin settings ------------------------------------------ */
.gp-logo-preview {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(11, 27, 43, 0.2);
    border-radius: 12px;
    background: var(--gp-bg-soft);
    overflow: hidden;
}
.gp-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Landing page ------------------------------------------------------------- */
.gp-landing {
    height: 100%;
    overflow-y: auto;
    color: var(--gp-ink);
    padding-bottom: 2rem;
}

.gp-hero {
    background: var(--gp-gradient);
    border-radius: 24px;
    color: #fff;
    padding: clamp(2rem, 5vw, 4.5rem);
    position: relative;
    overflow: hidden;
}
.gp-hero::after {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 320px; height: 320px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}
.gp-hero-inner { position: relative; max-width: 640px; }
.gp-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.gp-hero-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.08; margin: 0 0 1rem; }
.gp-hero-sub { font-size: 1.15rem; line-height: 1.6; opacity: 0.95; margin-bottom: 1.75rem; }
.gp-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.gp-hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.gp-hero-stats div { display: flex; flex-direction: column; }
.gp-hero-stats strong { font-size: 1.8rem; font-weight: 800; }
.gp-hero-stats span { opacity: 0.85; font-size: 0.9rem; }

/* App-store download badges ------------------------------------------------ */
.gp-store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.gp-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    background: #06231a;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.gp-store-badge:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 8px 18px rgba(6, 35, 26, 0.28); }
.gp-store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.gp-store-badge span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 700; font-size: 1.05rem; }
.gp-store-badge span small { font-weight: 500; font-size: 0.65rem; opacity: 0.8; letter-spacing: 0.03em; }
/* Light variant sits on dark banners; keep it readable there. */
.gp-store-badge-light { background: #fff; color: #06231a; border-color: rgba(6, 35, 26, 0.1); }
.gp-store-badge-light:hover { color: #06231a; }
.gp-store-badge-sm { padding: 0.45rem 0.9rem; }

/* Trust / "why us" grid ----------------------------------------------------- */
.gp-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; }
.gp-trust-item {
    background: var(--gp-surface);
    border: 1px solid rgba(11, 27, 43, 0.06);
    border-radius: var(--gp-radius);
    padding: 1.5rem;
    box-shadow: var(--gp-shadow-sm);
}
.gp-trust-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.12);
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
}
.gp-trust-item h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }
.gp-trust-item p { color: var(--gp-muted); margin: 0; font-size: 0.95rem; }

/* Get-the-app banner -------------------------------------------------------- */
.gp-app-banner {
    margin-top: 3rem;
    background: var(--gp-bg-soft);
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 24px;
    padding: 2.25rem clamp(1.5rem, 4vw, 3rem);
}
.gp-app-copy h2 { margin: 0 0 0.35rem; font-size: 1.6rem; font-weight: 800; color: var(--gp-ink); }
.gp-app-copy p { margin: 0 0 1.25rem; color: var(--gp-muted); }
.gp-app-banner .gp-store-badges { margin-bottom: 0; }

.gp-section { margin-top: 3rem; }
.gp-section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.25rem; }

.gp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.gp-feature {
    display: block;
    background: var(--gp-surface);
    border: 1px solid rgba(11, 27, 43, 0.06);
    border-radius: var(--gp-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--gp-ink);
    box-shadow: var(--gp-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gp-feature:hover { transform: translateY(-4px); box-shadow: var(--gp-shadow); color: var(--gp-ink); }
.gp-feature-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--gp-green-dark);
    margin-bottom: 1rem;
}
.gp-feature-icon svg { width: 28px; height: 28px; }
.gp-feature:hover .gp-feature-icon { background: rgba(16, 185, 129, 0.18); }
.gp-feature h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 0.4rem; }
.gp-feature p { color: var(--gp-muted); margin: 0; font-size: 0.95rem; }

.gp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.gp-step { background: var(--gp-bg-soft); border-radius: var(--gp-radius); padding: 1.5rem; }
.gp-step-num {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: var(--gp-gradient);
    color: #fff; font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    margin-bottom: 0.85rem;
}
.gp-step h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; }
.gp-step p { color: var(--gp-muted); margin: 0; font-size: 0.95rem; }

.gp-cta-banner {
    margin-top: 3rem;
    background: var(--gp-ink);
    color: #fff;
    border-radius: 24px;
    padding: 2.25rem clamp(1.5rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    justify-content: space-between;
}
.gp-cta-banner h2 { margin: 0 0 0.35rem; font-size: 1.6rem; font-weight: 800; }
.gp-cta-banner p { margin: 0; opacity: 0.8; }

/* Footer -------------------------------------------------------------------- */
.gp-footer { margin-top: 3rem; color: var(--gp-muted); font-size: 0.9rem; }
.gp-footer-cols {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(11, 27, 43, 0.08);
}
.gp-footer-brand strong { display: block; font-size: 1.25rem; color: var(--gp-ink); margin-bottom: 0.5rem; }
.gp-footer-brand p { margin: 0; max-width: 22rem; }
.gp-footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.gp-footer-col h4 { font-size: 0.95rem; font-weight: 700; color: var(--gp-ink); margin: 0 0 0.35rem; }
.gp-footer-col a { color: var(--gp-muted); text-decoration: none; }
.gp-footer-col a:hover { color: var(--gp-green-dark); }
.gp-footer-base {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(11, 27, 43, 0.08);
    text-align: center;
    font-size: 0.85rem;
}
@media (max-width: 720px) {
    .gp-footer-cols { grid-template-columns: 1fr 1fr; }
    .gp-footer-brand { grid-column: 1 / -1; }
}

/* ---- Admin / sub-dealer page cohesion ----------------------------------- */
/* Every page uses `<h3 class="mb-3">` as its title — accent it with a small
   gradient underline so all inner pages share the landing's identity. */
h3.mb-3 {
    font-weight: 700;
    color: var(--gp-ink);
    padding-bottom: 0.5rem;
}
h3.mb-3::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 0.45rem;
    border-radius: 3px;
    background: var(--gp-gradient);
}

/* Stat / balance figures shown inside cards read as "money" in brand green. */
.card .card-body h3 {
    color: var(--gp-green-dark);
    font-weight: 700;
}

/* Lift DevExpress data grids into rounded, shadowed cards to match the theme.
   (Grid dropdowns/popups portal to <body>, so rounding the root is safe.) */
.dxbl-grid {
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow-sm);
    border: 1px solid rgba(6, 35, 26, 0.06);
    overflow: hidden;
}

/* Filter/toolbar rows above grids get a little more breathing room. */
.dxbl-grid + .alert,
.alert.alert-info {
    border-radius: 12px;
}

/* ============================================================================
   Elegant inner pages — shared polish across every authenticated page
   ========================================================================== */

/* Soft, branded backdrop so white cards and forms lift off the page. */
body {
    background:
        radial-gradient(1100px 560px at 100% -10%, rgba(16, 185, 129, 0.07), transparent 60%),
        radial-gradient(820px 460px at -10% 110%, rgba(4, 120, 87, 0.05), transparent 55%),
        var(--gp-bg-soft, #f2faf6);
}

/* Gentle entrance for page content on each navigation. */
.page .p-4 { animation: gp-fade-in 0.35s ease both; }
@keyframes gp-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* Titles: tighter tracking to pair with the gradient underline. */
h3.mb-3, h4.mb-3 { letter-spacing: -0.01em; }

/* Form labels — quiet and confident. */
.page label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gp-ink);
    margin-bottom: 0.35rem;
    display: inline-block;
}

/* DevExpress editors: rounded, soft border, brand-green focus ring. */
.dxbl-editor {
    --dxbl-editor-border-radius: 12px;
    --dxbl-editor-border-color: rgba(6, 35, 26, 0.14);
    --dxbl-editor-hover-border-color: rgba(16, 185, 129, 0.55);
    --dxbl-editor-focus-border-color: var(--gp-green, #10b981);
    --dxbl-editor-focus-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.18);
}

/* DevExpress buttons: pill shape; primary carries the brand gradient. */
.dxbl-btn:not(.dxbl-btn-icon-only) {
    --dxbl-btn-border-radius: 999px;
    font-weight: 600;
}
.dxbl-btn.dxbl-btn-primary {
    background-image: var(--gp-gradient);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.30);
}
.dxbl-btn.dxbl-btn-primary:hover {
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.45);
    filter: brightness(1.03);
}

/* Cards gain tactility: a subtle lift on hover. */
.card, .gp-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover, .gp-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gp-shadow);
}

/* Balance / stat figures inside cards get presence. */
.card .card-body h3 { font-size: 2rem; line-height: 1.1; }

/* Alerts: soft tinted panels with rounded corners, no harsh borders. */
.alert { border-radius: 12px; border: none; box-shadow: var(--gp-shadow-sm); }
.alert-success { background: #e8f9f1; color: #065f46; }
.alert-danger  { background: #fdecec; color: #b42318; }
.alert-info    { background: #eaf4ff; color: #1e5aa8; }
.alert-warning { background: #fff7e6; color: #92600a; }
.alert-secondary { background: #f1f5f3; color: #3f4b46; }

/* DevExpress grid: crisp header, subtle row hover. */
.dxbl-grid {
    --dxbl-grid-header-bg: #f4faf7;
    --dxbl-grid-header-color: var(--gp-ink);
    --dxbl-grid-hover-bg: rgba(16, 185, 129, 0.06);
}
.dxbl-grid .dxbl-grid-header-content { font-weight: 700; }

/* Sidebar: brand-dark gradient panel so the white menu text reads elegantly. */
#sidebar {
    background: linear-gradient(180deg, #06231a 0%, #053b2b 55%, #043526 100%);
    padding: 0.5rem 0.5rem 1rem;
}
#sidebar .menu-item {
    border-radius: 10px;
    padding-block: 0.15rem;
    transition: background 0.12s ease, color 0.12s ease;
}
#sidebar .dxbl-menu-item:hover > .menu-item,
#sidebar a.menu-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
/* Group separators between role sections read as faint dividers. */
#sidebar .dxbl-menu-item-begin-group {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

/* Auth cards (login/register) get a gradient top accent + centered polish. */
.gp-card {
    position: relative;
}
.gp-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: var(--gp-radius) var(--gp-radius) 0 0;
    background: var(--gp-gradient);
    opacity: 0;
}
.gp-card.gp-accent::before { opacity: 1; }

/* "Powered by DAKE VENTURES" attribution. */
.gp-powered {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gp-muted);
    margin: 0.5rem 0 0;
}
.gp-powered strong { color: var(--gp-green-dark); font-weight: 700; }

/* Sidebar footer attribution sits on the dark drawer panel. */
.gp-drawer-footer {
    padding: 1rem 1.25rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}
.gp-drawer-footer strong { color: #fff; font-weight: 700; }

/* Sidebar logo header sits on the dark drawer panel — keep it dark so the logo reads. */
.navigation-drawer-header {
    background: linear-gradient(180deg, #06231a 0%, #043526 100%);
    padding: 1rem 1rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.navigation-drawer-header .logo {
    max-height: 40px;
    width: auto;
    max-width: 168px;
}

/* ============================================================================
   Big "data card" wrapper for customer-facing service pages
   ========================================================================== */
.gp-page-wrap { padding: 0.5rem 0 1.5rem; }
.gp-page-card {
    max-width: 660px;
    margin: 0 auto;
    background: var(--gp-surface);
    border: 1px solid rgba(6, 35, 26, 0.06);
    border-radius: 22px;
    box-shadow: var(--gp-shadow);
    overflow: hidden;
}
.gp-page-card-wide { max-width: 1000px; }

.gp-page-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.6rem clamp(1.25rem, 3vw, 2.25rem);
    background: var(--gp-gradient);
    color: #fff;
    position: relative;
}
.gp-page-card-head::after {
    content: "";
    position: absolute;
    right: -40px; top: -60px;
    width: 180px; height: 180px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}
.gp-page-card-icon {
    width: 54px; height: 54px; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    position: relative; z-index: 1;
}
.gp-page-card-icon svg { width: 30px; height: 30px; }
.gp-page-card-heading { position: relative; z-index: 1; }
.gp-page-card-title {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    color: #fff;
}
.gp-page-card-sub { margin: 0.25rem 0 0; opacity: 0.92; font-size: 0.95rem; }
.gp-page-card-body { padding: clamp(1.35rem, 3vw, 2.25rem); }
/* Inside the card, let forms breathe to the full width. */
.gp-page-card-body > .d-flex[style*="max-width"] { max-width: none !important; }

/* ============================================================================
   Subtle, thin scrollbars — so they don't disfigure the menu / pages
   ========================================================================== */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 35, 26, 0.22) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: rgba(6, 35, 26, 0.20);
    border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(6, 35, 26, 0.36); }

/* Sidebar sits on the dark panel: thin, light, unobtrusive scrollbar. */
#sidebar {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
#sidebar::-webkit-scrollbar { width: 6px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); }
#sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); }