@import '../_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';
@import 'app_cards.css';
@import 'app_cards_mobile.css';

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0 !important;
    background-color: #faf9f8;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    top: 50%;
    left: 50%;
    margin: -4rem 0 0 -4rem;
}
.loading-progress circle {
    fill: none;
    stroke: #8b2629;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #e0e0e0;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.navmenu-icon {
    display: none;
}

.main {
    min-height: calc(100% - 48px); /* Azure header is typically thinner */
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

/* Azure Portal specific overrides */
.azure-header {
    background-color: #8b2629 !important;
    color: white !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 16px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.azure-header-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    gap: 8px;
    color: white;
    text-decoration: none;
}

.azure-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.azure-header-actions fluent-icon {
    color: white !important;
    cursor: pointer;
}

.body-content {
    align-self: stretch;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    background-color: #faf9f8;
}

.content {
    padding: 10px 16px;
    align-self: stretch !important;
    width: 100%;
    flex-grow: 1;
    overflow-y: visible;
}

/* Override Fluent NavMenu to look like Azure Rail */
.azure-nav {
    background-color: #ffffff !important;
    border-right: 1px solid #e1dfdd !important;
}

.azure-nav fluent-nav-menu {
    background-color: transparent !important;
}

fluent-nav-menu ul, fluent-nav-group ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.azure-nav fluent-nav-link::part(control),
.azure-nav fluent-nav-group::part(button) {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #323130 !important;
    background-color: transparent !important;
    font-family: "Segoe UI", sans-serif !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.azure-nav fluent-nav-link .positioning-region,
.azure-nav fluent-nav-group .positioning-region,
.azure-nav fluent-nav-link .content-region,
.azure-nav fluent-nav-group .content-region,
.azure-nav .fluent-nav-item,
.azure-nav .fluent-nav-text {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
}

.azure-nav fluent-nav-link:hover::part(control),
.azure-nav fluent-nav-group:hover::part(button) {
    background-color: #f3f2f1 !important;
}

.azure-nav fluent-nav-link[active]::part(control) {
    background-color: #e3f2fd !important;
    color: #0078d4 !important;
    border-left: 3px solid #0078d4 !important;
}

#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;
    margin: 20px 0;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

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

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

.mobile-nav-toggle {
    display: none;
    cursor: pointer;
    margin-right: 16px;
    align-items: center;
}

.azure-nav-overlay {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .azure-layout-body {
        flex-direction: row !important;
        overflow-y: hidden !important; 
    }

    .azure-nav {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1001;
        background-color: white;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 250px !important;
        height: 100% !important;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
        border-right: 1px solid #e1dfdd !important;
    }

    .azure-nav.open {
        transform: translateX(0);
    }

    .azure-nav-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1000;
    }

    .body-content {
        width: 100%;
        height: 100% !important;
        overflow-y: auto !important;
    }

    .workflow-wizard-container {
        padding: 10px !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .workflow-step-container {
        padding: 10px !important;
    }

    /* Prevent horizontal overflow on tabs and wizards */
    .fluent-tabs, .fluent-wizard {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

.workflow-wizard-container {
    max-width: 800px;
    margin: 0 0 20px 0;
    padding: 20px;
    border: none;
    background-color: transparent;
    box-sizing: border-box;
}

.workflow-step-container {
    padding: 20px;
    box-sizing: border-box;
}


:root { --datagrid-hover-color: lightyellow; }
.fluent-data-grid { --fluent-data-grid-resize-handle-color: var(--neutral-stroke-rest) !important; --fluent-data-grid-resize-handle-opacity: 1 !important; }

fluent-dialog[class~="right"]::part(control), fluent-dialog[class~="left"]::part(control) {
    display: flex;
    flex-direction: column;
    border-radius: 0 !important;
    border-width: 0 !important;
    --dialog-height: 100vh !important; height: 100vh !important;
    margin: 0 !important;
    overflow-y: auto;
}

fluent-dialog::part(control) {
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
}
fluent-dialog {
    --dialog-height: 100dvh !important;
    align-items: stretch !important;
}

/* Custom Tab Styling for Sell/Rent Pages */
fluent-tabs {
    --accent-fill-rest: #8b2629; /* Dark red for active indicator */
}

fluent-tab {
    text-transform: uppercase !important;
    font-size: 13px !important;
    color: #323130 !important;
    padding: 10px 16px !important;
}

fluent-tab[aria-selected="true"] {
    color: #8b2629 !important;
    font-weight: 600 !important;
}

/* Ensure all select dropdowns are scrollable and don't occupy the entire screen */
fluent-select {
    --listbox-max-height: 250px;
}
fluent-select::part(listbox) {
    max-height: 250px;
    overflow-y: auto;
}

.custom-price-marker { background: transparent; border: none; } .marker-label { background-color: #900; color: white; padding: 4px 8px; border-radius: 12px; font-weight: bold; font-size: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.3); border: 1px solid white; white-space: nowrap; text-align: center; } .marker-label:hover { background-color: #700; transform: scale(1.1); transition: all 0.2s ease; cursor: pointer; }
.featured-marker-label { background-color: #FFD700; color: #333; padding: 4px 8px; border-radius: 12px; font-weight: bold; font-size: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.4); border: 2px solid #B8860B; white-space: nowrap; text-align: center; } .featured-marker-label:hover { background-color: #FFC125; transform: scale(1.1); transition: all 0.2s ease; cursor: pointer; }
. a z u r e - n a v   f l u e n t - n a v - g r o u p [ t i t l e = ' B u y ' ]   f l u e n t - i c o n   {   c o l o r :   # 1 0 7 c 1 0   ! i m p o r t a n t ;   }   . a z u r e - n a v   f l u e n t - n a v - g r o u p [ t i t l e = ' S e l l ' ]   f l u e n t - i c o n   {   c o l o r :   # d 8 3 b 0 1   ! i m p o r t a n t ;   }   . a z u r e - n a v   f l u e n t - n a v - g r o u p [ t i t l e = ' R e n t ' ]   f l u e n t - i c o n   {   c o l o r :   # a 8 0 0 0 0   ! i m p o r t a n t ;   }   . a z u r e - n a v   f l u e n t - n a v - g r o u p [ t i t l e = ' P o s t   R e n t a l ' ]   f l u e n t - i c o n   {   c o l o r :   # 0 0 5 a 9 e   ! i m p o r t a n t ;   }  
 . a z u r e - n a v   . n a v - i c o n - h o m e   f l u e n t - i c o n ,   . a z u r e - n a v   . n a v - i c o n - h o m e : : p a r t ( i c o n )   {   c o l o r :   # 8 b 2 6 2 9   ! i m p o r t a n t ;   f i l l :   # 8 b 2 6 2 9   ! i m p o r t a n t ;   }   . a z u r e - n a v   . n a v - i c o n - b u y   f l u e n t - i c o n ,   . a z u r e - n a v   . n a v - i c o n - b u y : : p a r t ( i c o n )   {   c o l o r :   # 1 0 7 c 1 0   ! i m p o r t a n t ;   f i l l :   # 1 0 7 c 1 0   ! i m p o r t a n t ;   }   . a z u r e - n a v   . n a v - i c o n - s e l l   f l u e n t - i c o n ,   . a z u r e - n a v   . n a v - i c o n - s e l l : : p a r t ( i c o n )   {   c o l o r :   # d 8 3 b 0 1   ! i m p o r t a n t ;   f i l l :   # d 8 3 b 0 1   ! i m p o r t a n t ;   }   . a z u r e - n a v   . n a v - i c o n - r e n t   f l u e n t - i c o n ,   . a z u r e - n a v   . n a v - i c o n - r e n t : : p a r t ( i c o n )   {   c o l o r :   # a 8 0 0 0 0   ! i m p o r t a n t ;   f i l l :   # a 8 0 0 0 0   ! i m p o r t a n t ;   }   . a z u r e - n a v   . n a v - i c o n - p o s t   f l u e n t - i c o n ,   . a z u r e - n a v   . n a v - i c o n - p o s t : : p a r t ( i c o n )   {   c o l o r :   # 0 0 5 a 9 e   ! i m p o r t a n t ;   f i l l :   # 0 0 5 a 9 e   ! i m p o r t a n t ;   }   . a z u r e - n a v   . n a v - i c o n - c a r e e r s   f l u e n t - i c o n ,   . a z u r e - n a v   . n a v - i c o n - c a r e e r s : : p a r t ( i c o n )   {   c o l o r :   # 1 0 7 c 1 0   ! i m p o r t a n t ;   f i l l :   # 1 0 7 c 1 0   ! i m p o r t a n t ;   }   . a z u r e - n a v   . n a v - i c o n - c o n t a c t   f l u e n t - i c o n ,   . a z u r e - n a v   . n a v - i c o n - c o n t a c t : : p a r t ( i c o n )   {   c o l o r :   # d 8 3 b 0 1   ! i m p o r t a n t ;   f i l l :   # d 8 3 b 0 1   ! i m p o r t a n t ;   }   . a z u r e - n a v   . n a v - i c o n - i n f o   f l u e n t - i c o n ,   . a z u r e - n a v   . n a v - i c o n - i n f o : : p a r t ( i c o n )   {   c o l o r :   # 0 0 5 a 9 e   ! i m p o r t a n t ;   f i l l :   # 0 0 5 a 9 e   ! i m p o r t a n t ;   }  
 