﻿:root {
    --background-color: #fafafa;
    --body-background-color: #fbfbfc;
    --input-color: #f1f1f1;
    --background-image-route: #fff;
    --custom-footer-text: #fff;
    /*mud primary overwrite*/
    --mud-palette-primary: rgba(19, 125, 180, 1) !important;
    --mud-palette-primary-rgb: 19, 125, 180 !important;
    --mud-palette-primary-text: rgba(255, 255, 255, 1) !important;
    --mud-palette-primary-darken: rgb(14, 94, 136) !important;
    --mud-palette-primary-lighten: rgb(26, 154, 217) !important;
    --mud-palette-primary-hover: rgba(19, 125, 180, 0.058823529411764705) !important;
    --mud-palette-appbar-background: #137DB4 !important;
    --mud-palette-primary-footer-background: #137DB4 !important;
}

html, body {
    overflow-x: hidden;
    height: 100%;
    background-color: var(--html-background-color, unset)
}
.gray-out {
    pointer-events: none;
    opacity: 0.3;
}

.main-content {
    background-color: var(--body-background-color);
    flex-grow: 1;
    /*min-height: 50vh !important;*/
}
.custom-mobile-drawer {
    position: fixed !important; /* Forces the drawer to stay glued to the screen */
    height: 100vh !important;
}

    /* Forces the content INSIDE the drawer to be scrollable if you have many links */
    .custom-mobile-drawer .mud-drawer-content {
        overflow-y: auto !important;
    }

.mobile-icon-nav {
    color: inherit !important;
    width: auto !important;
}


/*CART NAV ICON*/
.mud-button-root ~ .mud-badge-wrapper > .mud-badge {
    inset: auto auto calc(100% - 20px) calc(100% - 20px) !important;
}
/* Splash Screen */
/*.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #ffffff;
}

.splash-image {
    width: 100%;
    height: 100%;
    background-image: url('/images/SplashImage.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}*/

.awwwards-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: opacity, transform;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.logo-mask {
    overflow: hidden;
    padding-bottom: 5px;
}

.premium-logo {
    width: 180px;
    height: auto;
    /* Nincs CSS animáció! Csak elrejtjük kezdetben, hogy ne villanjon be */
    opacity: 0;
}

.loading-track {
    width: 180px;
    height: 2px;
    background-color: #e0e0e0;
    overflow: hidden;
    border-radius: 2px;
    opacity: 0;
}

.loading-progress {
    width: 100%;
    height: 100%;
    background-color: var(--mud-palette-primary, #333333);
    /* Ráerőltetjük a GPU-ra a számolást */
    will-change: transform;
    /* Visszahoztuk a CSS animációt */
    animation: progressFill 1.5s cubic-bezier(0.86, 0, 0.07, 1) infinite;
}

/* A CSS végzi a mozgatást, amíg a Blazor a háttérben tölt */
@keyframes progressFill {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* NAVBAR stickyness */
.mud-appbar {
    position: sticky;
    top: 0;
    /**/
    height: 60px;
    justify-content: center;
    
}

@media (max-width: 599.98px) {
    .mud-appbar {
        padding-right: 4vw;
    }
}

.mud-layout {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

    .mud-layout > .mud-main-content {
        padding-top: 0;
        display: flex;
    }

/*Rendeles wrapper*/
.rendeles-bg {
    background-image: var(--background-image-route);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dashboard-container-background {
    background-color: var(--mud-palette-surface);
}

.zseb-mobile-bg {
    background-color: var(--mud-palette-surface);
}

@media (max-width: 768px) {
    .rendeles-mobile-bg {
        background-color: var(--mud-palette-surface);
        background-image: var(--mud-palette-surface);
    }

    .main-container {
        max-width: none !important;
    }

    .dashboard-container-background {
        background-color: var(--mud-palette-surface) !important;
    }
}

/* NAVBAR small buttons */
.nav-square-button {
    height: 48px;
    width: 48px;
    border-radius: 0 !important; /* Removes the default circular shape */
}

    .nav-square-button.nav-close-btn{
        color: #fff !important;
    }

.nav-logo-button {
    height: 48px;
    width: auto;
    min-width: 60px;
    border-radius: 0 !important;
}



/* NAVBAR dropdown buttons */

.nav-tab-button {
    height: 48px;
    width: 150px;
    border-radius: 0 !important;
    justify-content: flex-start !important;
}

    .nav-tab-button button {
        width: 100%;
        min-width: 0;
    }

.nav-tab-popover {
    width: 150px !important;
    margin-top: 0 !important;
}
    .nav-tab-popover.nav-tab-popover-small {
        margin-top: 0.45rem !important;
    }

    .nav-tab-popover.custom-menu-offset {
        margin-top: 0.45rem !important;
    }

    .nav-tab-popover .mud-list {
        min-width: 0;
    }

    .nav-tab-popover .mud-list-item-text,
    .nav-tab-popover p {
        white-space: normal !important;
        word-wrap: break-word;
        line-height: 1.3 !important;
    }

    /* Adds a little extra vertical padding to wrapped items so they don't look cramped */
    .nav-tab-popover .mud-list-item {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }


.nav-tab-button-small {
    height: 48px;
    width: 48px;
    border-radius: 0 !important;
    justify-content: flex-start !important;
}

.nav-tab-popover-small {
    width: 130px !important;
    margin-top: 0 !important;
}

.nav-tab-button-large {
    height: 48px;
    width: 200px;
    border-radius: 0 !important;
    justify-content: flex-start !important;
}

.nav-tab-popover-large {
    width: 200px !important;
    margin-top: 0 !important;
}

/* NAVBAR drawer / burger menu */

.drawer-section-divider {
    border-bottom: 1px solid var(--mud-palette-lines-default) !important;
}

@media (max-width: 599.98px) {
    .custom-mobile-drawer {
        /* For the closed drawer */
        --mud-drawer-width: 100vw !important;
        --mud-drawer-width-right: 100vw !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

/* ==========================================================================
   UNIVERSAL STICKY MUDBLAZOR STEPPER
   Simply add Class="sticky-stepper" to any <MudStepper> component.
   ========================================================================== */

/* 1. Force the stepper into a flexbox column that fills its parent container */
.sticky-stepper {
    height: 100%;
    max-height: 100%;
    display: flex !important;
    flex-direction: column !important;
}

    /* 2. Pin the top header navigation */
    .sticky-stepper .mud-stepper-nav {
        position: sticky;
        top: 48px;
        z-index: 26;
        background-color: var(--mud-palette-background);
        border-bottom: 1px solid var(--mud-palette-divider);
    }

    /* 3. Target the inner content container and make it the ONLY scrollable area */
    .sticky-stepper .mud-chart-main, /* Fallback catch for container layout */
    .sticky-stepper .mud-stepper-content {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 16px; /* Optional padding for better readability */
    }

    /* 4. Pin the bottom action buttons bar */
    .sticky-stepper .mud-stepper-actions {
        position: sticky;
        bottom: 0;
        z-index: 10;
        background-color: var(--mud-palette-background);
        border-top: 1px solid var(--mud-palette-divider);
        margin-top: auto; /* Ensures it sits at the absolute bottom */
    }
        .sticky-stepper .mud-stepper-actions button {
            padding: 0 12px;
        }





/* Asztali nézet (MudBlazor 'md' töréspontjától felfelé) */
@media (max-width: 600px) {
    .footer-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}