﻿
body{background:#f7f8fa;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;}
.ugp-header{background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.08);position:sticky;top:0;z-index:10;}
.ugp-header .container{max-width:1100px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;}
.ugp-header .left{display:flex;align-items:center;gap:12px;}
.ugp-header .right{display:flex;align-items:center;gap:10px;color:#4a4a4a;}
.ugp-header .right a{color:#845B87;text-decoration:none;font-weight:600;}
.ugp-header .right .sep{opacity:.6}
.ugp-header .title{font-weight:700;color:#6B4EFF;font-size:20px}
.ugp-header .logo{height:34px}
.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:20px 0;}
.kpi{background:#fff;border:1px solid #eee;border-left:4px solid #ee3776;border-radius:12px;padding:16px;box-shadow:0 2px 6px rgba(0,0,0,.05);}
.kpi .label{color:#666;font-size:13px;margin-top:6px}
.table-card{background:#fff;border-radius:12px;box-shadow:0 2px 6px rgba(0,0,0,.05);border:1px solid #eee;overflow:hidden}

:root {
    --ugp-purple: #845B87;
    --ugp-purple-2: #845B87;
}

body {
    background: #f7f8fa;
    margin: 0;
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
}

.ugp-header {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

    .ugp-header .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ugp-header .left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ugp-header .right {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #4a4a4a;
    }

        .ugp-header .right a {
            color: var(--ugp-purple);
            text-decoration: none;
            font-weight: 600;
        }

        .ugp-header .right .sep {
            opacity: .6
        }

    .ugp-header .title {
        font-weight: 800;
        color: #845B87;
        font-size: 20px
    }

    .ugp-header .logo {
        height: 34px
    }

/* KPI cards accent */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 16px;
    margin: 20px 0;
}

.kpi {
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid var(--ugp-purple);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

    .kpi .label {
        color: #666;
        font-size: 13px;
        margin-top: 6px
    }

/* Table shell */
.table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
    border: 1px solid #eee;
    overflow: hidden
}

/* Pretty file picker */
/*.filepicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .filepicker input[type=file] {
        display: none;
    }

    .filepicker .btn-upload {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        border-radius: 999px;
        border: none;
        cursor: pointer;
        background: var(--ugp-purple);
        color: #fff;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(111,44,145,.25);
        transition: transform .05s ease, box-shadow .2s ease;
    }

        .filepicker .btn-upload:hover {
            box-shadow: 0 4px 12px rgba(111,44,145,.35);
            transform: translateY(-1px);
        }

    .filepicker .filename {
        color: #555;
        max-width: 420px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }*/

.filepicker {
    display: flex;
    align-items: center;
    gap: 50px;
    padding-left: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: #845B87; /* UGP Purple */
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(111,44,145,0.25);
    transition: transform .05s ease, box-shadow .2s ease;
}

    .btn-upload:hover {
        box-shadow: 0 4px 10px rgba(111,44,145,0.35);
        transform: translateY(-1px);
    }

.filename {
    color: #666;
    font-size: 0.9rem;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:root {
    --ugp-purple: #845B87;
    --ugp-bg: #f7f8fa;
}

.ugp-hero {
    background: radial-gradient(1200px 600px at 10% 0%, rgba(111,44,145,0.06), transparent 60%), radial-gradient(900px 500px at 90% 20%, rgba(140,95,180,0.07), transparent 60%), var(--ugp-bg);
    padding: 48px 0 24px;
}

.hero-wrap {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    padding: 0 16px;
}

.hero-left {
    align-self: center;
}

.hero-logo {
    height: 36px;
    margin-bottom: 10px;
}

.hero-title {
    margin: 0;
    color: var(--ugp-purple);
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-sub {
    max-width: 640px;
    color: #555;
    font-size: 18px;
    margin: 10px 0 18px;
}

.hero-cta {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.hero-meta {
    margin-top: 10px;
}

.hero-card {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eee;
}

.ugp-features {
    margin: 28px auto 40px;
    max-width: 1100px;
    padding: 0 16px;
}

.feature {
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eee;
    text-align: left;
    min-height: 180px;
}

    .feature h4 {
        margin: 8px 0 6px;
        color: #333
    }

    .feature p {
        color: #666;
        margin: 0
    }

.ugp-footer {
    border-top: 1px solid #eee;
    background: #fff;
    color: #666;
    padding: 14px 16px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .ugp-footer .links a {
        color: var(--ugp-purple);
        text-decoration: none;
        font-weight: 600
    }

    .ugp-footer .links span {
        opacity: .6;
        margin: 0 8px
    }

/* Responsive */
@media (max-width: 980px) {
    .hero-wrap {
        grid-template-columns: 1fr
    }

    .hero-right {
        order: -1
    }

    .hero-title {
        font-size: 34px
    }
}

/* Fix content sliding under header */
.layout-body {
    padding-top: 90px; /* Adjust if header height changes */
}

/* Optional: extra spacing for small screens */
@media (max-width: 768px) {
    .layout-body {
        padding-top: 120px;
    }
}

.dashboard-content {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .dashboard-content {
        margin-top: 60px; /* more space on mobile */
    }
}

.kpi-row, .stats-container, .dashboard-kpis {
    margin-top: 60px !important;
}

.page-content {
    margin-top: 60px !important; /* perfect for fixed appbar height */
}
/* pushes content below fixed MudAppBar */
.layout-body {
    margin-top: 60px !important; /* sweet spot for MudAppBar fixed */
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 768px) {
    .layout-body {
        margin-top: 90px !important;
    }
}

.cursor-pointer {
    cursor: pointer;
}
.text-white {
    color: #ffffff;
}

.app-logo {
    height: 32px; /* adjust as you like */
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

/* Increase app bar height */
.app-bar-tall {
    height: 80px; /* overall bar height */
    background-color: #845B87;
}

/* MudAppBar uses an internal toolbar – bump that too */
.app-bar-tall .mud-toolbar {
    min-height: 75px;
}
.ugp-btn-dashboard {
    background-color: #845B87;
    color: white !important;
}
btn-logout {
    border-color: white !important;
    color: white !important;
}

/* Fullscreen dim + blur */
/*#ugp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;*/ /* JS toggles to flex */
    /*justify-content: center;
    align-items: center;
}*/

/* The small white window */
/*.ugp-overlay-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 48px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;*/ /* <-- vertically center spinner + text */
    /*gap: 20px;*/ /* space between spinner and text */
    /*min-width: 320px;
    min-height: 220px;
}*/

/* Spinner itself – perfectly centred by the flex above */
/*.ugp-overlay-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 8px solid #e2e2e7;
    border-top-color: #6f2c91;*/ /* UGP purple */
    /*animation: ugp-spin 0.7s linear infinite;
}*/

/* Text under spinner */
/*.ugp-overlay-text {
    font-size: 22px;
    font-weight: 600;
    color: #6f2c91;
}*/

/* Spin animation */
/*@keyframes ugp-spin {
    to {
        transform: rotate(360deg);
    }
}*/


/*
#ugp-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

    #ugp-overlay .ugp-overlay-bg {
        position: absolute;
        inset: 0;
        justify-content: center;
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(4px);
    }

    #ugp-overlay .ugp-overlay-box {
        position: relative;
        background: #fff;
        padding: 28px 48px;
        border-radius: 14px;
        text-align: center;
        box-shadow: 0 6px 22px rgba(0,0,0,.2);
    }

    #ugp-overlay .ugp-overlay-spinner {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        border: 6px solid rgba(0,0,0,.12);
        border-top: 6px solid #6f2c91;
        animation: spin .85s linear infinite;
    }

    #ugp-overlay .ugp-overlay-text {
        margin-top: 14px;
        color: #6f2c91;
        font-size: 18px;
        font-weight: 600;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}*/


/* Fullscreen dim + blur */
#ugp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none; /* JS toggles to flex */
    justify-content: center;
    align-items: center;
}

/* The small white window */
.ugp-overlay-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 48px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* <-- vertically center spinner + text */
    gap: 20px; /* space between spinner and text */
    min-width: 320px;
    min-height: 220px;
}

/* Spinner itself – perfectly centred by the flex above */
.ugp-overlay-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 8px solid #e2e2e7;
    border-top-color: #845B87; /* UGP purple */
    animation: ugp-spin 0.7s linear infinite;
}

/* Text under spinner */
.ugp-overlay-text {
    font-size: 22px;
    font-weight: 600;
    color: #845B87;
}

/* Spin animation */
@keyframes ugp-spin {
    to {
        transform: rotate(360deg);
    }
}




/* ==== UGP Terms Dialog Styling ==== */

/* ==== UGP Terms Dialog Styling ==== */

/*.ugp-title {
    font-weight: 600;
    color: #5A2D8A;
}

.ugp-actions {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px 18px;
}

.text-muted {
    opacity: .65;
}*/

/* Outer card – neat width & rounded corners */
/* Width & shape */
. /* Dialog WIDTH + RADIUS */


/*.mud-dialog .mud-paper {
    width: 560px !important;
    border-radius: 12px !important;
}*/

/* Title spacing */
/*.ugp-td-title {
    padding: 16px 32px 4px 32px;
    font-weight: 600;
}*/

/* Body padding */
/*.ugp-td-body {
    padding: 8px 32px 24px 32px;
}*/

/* Bullets spacing */
/*.ugp-td-bullets > div {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5rem;
}*/

/* Caption */
/*.ugp-td-caption {
    opacity: 0.65;
}*/

/* Buttons row */
/*.ugp-td-actions {
    padding: 12px 32px 20px 32px;
    justify-content: flex-end;
    gap: 12px;
}*/


/*.mud-dialog .mud-paper .mud-dialog-content {
    padding: 28px 36px;*/ /* top-bottom | left-right */
/*}*/

/* Title area */
/*.mud-dialog .mud-paper .mud-dialog-title {
    padding: 20px 36px;
}*/

/* Footer actions */
/*.mud-dialog .mud-paper .mud-dialog-actions {
    padding: 14px 36px 24px;
}
.mud-dialog .mud-paper {
    border-radius: 10px;
    width: 720px;*/ /* you can push to 700–750 if text is long */
/*}*/

/* Better line height */
/*.mud-dialog .mud-paper .mud-dialog-content p,
.mud-dialog .mud-paper .mud-dialog-content li {
    line-height: 1.55;
    font-size: 0.98rem;
}*/

/* Softer bullet list */
/*.mud-dialog .mud-paper .mud-dialog-content ul {
    margin-top: 10px;
    margin-bottom: 16px;
    padding-left: 22px;
}*/

    /* Shared inner padding for title + body */
    /* One wrapper = fixed spacing everywhere */
    /* Make all dialogs a bit more padded – safe and global */
    /*.mud-dialog .mud-dialog-title {
        padding: 18px 40px 6px 40px;
    }

    .mud-dialog .mud-dialog-content {
        padding: 8px 40px 20px 40px;
    }

    .mud-dialog .mud-dialog-actions {
        padding: 10px 40px 20px 40px;
        justify-content: flex-end;
    }*/

    /* Nicer bullet list inside dialogs */
    /*.mud-dialog .mud-dialog-content ul {
        margin: 6px 0 14px 0;
        padding-left: 24px;
        line-height: 1.5;
        font-size: 0.95rem;
    }*/
    /* Applies to all dialogs – safest, least brittle */
    /*.mud-dialog .mud-dialog-title {
        padding: 20px 40px 8px 40px;
    }

    .mud-dialog .mud-dialog-content {
        padding: 16px 40px 20px 40px;
    }

    .mud-dialog .mud-dialog-actions {
        padding: 12px 40px 22px 40px;
    }*/

    /* Center the dialog title text */
    /* Forces dialog content to be centered */


    /* Make the dialog a bit narrower and rounded */
    .mud-dialog .mud-paper {
        max-width: 720px;
        border-radius: 12px;
    }

    /* Title spacing */
    .ugp-td-title {
        padding: 18px 32px 8px 32px;
        font-weight: 600;
    }

    /* Body spacing */
    .ugp-td-body {
        padding: 8px 32px 20px 32px !important;
    }

        .ugp-td-body .mud-typography {
            line-height: 1.5;
        }

    /* Caption */
    .ugp-td-caption {
        margin-top: 10px;
        opacity: .7;
        font-weight: 600;
    }

    /* Buttons row */
    .ugp-td-actions {
        padding: 10px 32px 18px 32px;
        justify-content: flex-end;
        gap: 12px;
    }


.ugp-outline-purple {
    color: #845B87 !important;
    border-color: #845B87 !important;
}

    .mpan-actions {
        display: flex;
        align-items: center;
        gap: 24px; /* was 16px – bump this as you like */
    }



.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1; /* pushes footer down */
}

.ugp-footer {
    padding: 12px 16px;
}




html, body {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Force MudBlazor typography */
:root {
  --mud-typography-default-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.mud-typography,
.mud-button,
.mud-input,
.mud-paper,
.mud-table,
.mud-list,
.mud-chip,
.mud-select,
.mud-text {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Pink hover for MudBlazor buttons */
.ugp-btn-dashboard {
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

/* Filled button hover */
.ugp-btn-dashboard:hover {
    background-color: #EE3776 !important; /* pink */
    box-shadow: 0 10px 24px rgba(238, 55, 118, 0.25) !important;
    transform: translateY(-1px);
}

/* Make sure text stays readable */
    .ugp-btn-dashboard:hover .mud-button-label {
        color: #fff !important;
    }

.btn-logout {
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

/* Filled button hover */
.btn-logout:hover {
    background-color: #EE3776 !important; /* pink */
    box-shadow: 0 10px 24px rgba(238, 55, 118, 0.25) !important;
    transform: translateY(-1px);
}

/* Make sure text stays readable */
.btn-logout:hover .mud-button-label {
    color: #fff !important;
}


.btn-login {
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

    /* Filled button hover */
.btn-login:hover {
    background-color: #EE3776 !important; /* pink */
    box-shadow: 0 10px 24px rgba(238, 55, 118, 0.25) !important;
    transform: translateY(-1px);
}

/* Make sure text stays readable */
.btn-login:hover .mud-button-label {
    color: #fff !important;
}


.btn-upload {
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

    /* Filled button hover */
    .btn-upload:hover {
        background-color: #EE3776 !important; /* pink */
        box-shadow: 0 10px 24px rgba(238, 55, 118, 0.25) !important;
        transform: translateY(-1px);
    }

/* Make sure text stays readable */
.btn-upload:hover .mud-button-label {
    color: #fff !important;
}

.text-ugp-purple {
    color: #845B87;
}

.mud-button-filled.mud-button-text-primary {
    background-color: #845B87 !important;
    padding-left: 20px;
    color: white !important;
}

.mud-button-outlined.mud-button-text-primary {
    border-color: #845B87 !important;
    padding-left: 20px;
    color: #5a2d82 !important;
}



