html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5I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I2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.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;
}


/* AppBar Gradient */
.modern-appbar {
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    color: white;
}

/* Drawer Styling */
.modern-drawer {
    background-color: #ffffff;
    border-right: 1px solid #eee;
}

/* Main Content Background */
.main-content {
    padding: 24px;
    margin-top: 64px;
    background-color: #f4f6f9;
    min-height: 100vh;
}

/* Nav hover */
.mud-nav-link:hover {
    background-color: #f0f2ff !important;
    border-radius: 8px;
}

.header-color {
    background-color: var(--mud-palette-primary) !important;
    /*    background-color: #A9BC5A;*/
    color: white !important;
    font-weight: 600;
}

.actions-header .mud-data-grid-header-cell-content {
    justify-content: center !important;
}



.dashboard-card {
    border-left: 5px solid #829521;
    transition: 0.3s ease;
    border-radius: 12px;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(130, 149, 33, 0.25);
    }

.growth-text {
    color: #829521;
    font-weight: 500;
}

/* ================= HERO SECTION ================= */

.hero-section {
    height: 100vh;
    background-image: url('/images/hero-bg.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    color: white;
    font-weight: 500;
    font-size: 52px;
    max-width: 900px;
    line-height: 1.3;
}

/* ================= APPBAR ================= */

.public-appbar {
    background: transparent !important;
    padding: 0 40px;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    text-transform: none;
    font-size: 15px;
}

.login-btn {
    background-color: #e7b44b !important;
    color: black !important;
    text-transform: none;
    border-radius: 20px;
    padding: 6px 18px;
}

/* ================= HERO BUTTONS ================= */

.hero-btn {
    color: white !important;
    border: 1px solid white !important;
    border-radius: 30px;
    padding: 10px 24px;
    text-transform: none;
}

.hero-btn-filled {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    border-radius: 30px;
    padding: 10px 24px;
    text-transform: none;
}

/* Logo hover effect */
.logo-hover:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
}

/* Prevent content overlap */
.main-content {
    margin-top: 0;
}


/* ================= VIDEO HERO ================= */

.video-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Dark overlay */
.video-overlay {
    position: relative;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

/* Text styling */
.hero-title {
    color: white;
    font-size: 52px;
    font-weight: 500;
    max-width: 900px;
    line-height: 1.3;
}

/* Buttons */
.hero-btn {
    color: white !important;
    border: 1px solid white !important;
    border-radius: 30px;
    padding: 10px 24px;
    text-transform: none;
}

.hero-btn-filled {
    background: rgba(255,255,255,0.2) !important;
    color: white !important;
    border-radius: 30px;
    padding: 10px 24px;
    text-transform: none;
}




.modern-login-dialog {
    border-radius: 16px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #3f51b5, #5c6bc0);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
}

.captcha-box {
    background: #f8f9ff;
    border-radius: 12px;
}

.mud-dialog {
    animation: fadeInScale 0.25s ease-in-out;
}

@keyframes fadeInScale {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}




.dnd-column {
    min-height: 200px;
    padding: 5px;
    border: 1px dashed #ccc;
    border-radius: 6px;
}

.dnd-card {
    cursor: grab;
}

    .dnd-card:active {
        cursor: grabbing;
    }




   /* vishwaved css*/

.header-color .mud-icon-root {
    color: white !important;
}

.header-color .mud-sort-label {
    color: white !important;
}

.header-color .mud-table-sort-label-icon {
    color: white !important;
}

.header-color .mud-table-filter {
    color: white !important;
}

.header-color .mud-menu {
    color: white !important;
}



/*loader service*/

/* Full-screen Loader Wrapper */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    position: relative;
}

/* The Logo Animation */
.loader-logo {
    width: 80px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(122, 154, 59, 0.2));
}

/* Breathing Aura Effect */
.brand-logo-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(196, 214, 0, 0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: pulse-aura 2s infinite ease-in-out;
}

/* Thin Loading Line */
.loading-bar-container {
    width: 140px;
    height: 3px;
    background: #f0f0f0;
    margin: 30px auto 10px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-bar-fill {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, #7A9A3B, #C4D600);
    border-radius: 10px;
    animation: progress-slide 1.5s infinite ease-in-out;
}

.loading-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #7A9A3B;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
}

/* Keyframes */
@keyframes pulse-aura {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

@keyframes progress-slide {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}



/* --- Global & Navbar --- */
:root {
    --brand-forest: #7A9A3B;
    --brand-lime: #C4D600;
}

.modern-top-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--brand-forest), var(--brand-lime));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2001;
}

.glass-nav {
    top: 4px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-main {
    font-weight: 900;
    font-size: 18px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.v-tag {
    color: var(--brand-forest);
    font-weight: 300;
    font-size: 14px;
}

.brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    margin: 0 15px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

    .nav-link.active {
        color: var(--brand-forest);
    }

.btn-modern-login {
    background-color: var(--brand-forest) !important;
    color: #fff !important;
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 700 !important;
}

/* --- Secure Login Dialog --- */
.login-dialog-container {
    border-radius: 16px !important;
    overflow: hidden !important; /* Forces the edges to stay clean */
}

.login-wrapper {
    display: flex;
    min-height: 480px;
    margin: 0; /* Remove the negative margin since we disabled side padding */
    width: 100%;
}

.login-branding {
    flex: 1;
    background: var(--brand-forest);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.shield-icon {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.login-form {
    flex: 1.2;
    padding: 40px;
    background: #fff;
}

.captcha-box {
    background: #f4f7f0;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e0e6d8;
}

.captcha-label {
    font-size: 10px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
}

.captcha-display {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--brand-forest);
    text-align: center;
    margin: 10px 0;
    user-select: none;
    border: 1px dashed var(--brand-forest);
    padding: 5px;
}
/*
loader*/



/* Ensure the page content fades in smoothly */
.page-fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}