@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';
@import url('https://fonts.googleapis.com/css2?family=Damion&display=swap');



:root {
    --dialog-background-color: var(--neutral-layer-4);
    height: 100dvh;
}

[data-theme="dark"] {
    --dialog-background-color: var(--neutral-layer-3);
}

body {
    --body-font: "Inter", 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;
}

* {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent !important;
    --neutral-stroke-input-rest: var(--neutral-fill-input-hover) !important;
}

    *::-webkit-scrollbar {
        width: 6px !important;
        height: 6px !important;
    }

    *::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.5) !important;
        border-radius: 20px !important;
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3) !important;
    }

    *::-webkit-scrollbar-track {
        background: transparent !important;
    }

    *::-webkit-scrollbar-button {
        display: none !important;
    }

    *::-webkit-scrollbar-thumb:hover {
        background-color: rgba(0, 0, 0, 0.7) !important;
        box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4) !important;
    }

/* FluentNavMenu transparent background - Global CSS */
.fluent-nav-menu {
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

.fluent-nav-item {
    background: transparent !important;
    background-color: transparent !important;
}

.fluent-nav-link {
    background: transparent !important;
    background-color: transparent !important;
}

.fluent-nav-link.active,
.fluent-nav-link[aria-current="page"] {
    background: transparent !important;
    background-color: transparent !important;
}

.fluent-nav-group {
    background: transparent !important;
    background-color: transparent !important;
}

.fluent-nav-group.expanded {
    background: transparent !important;
    background-color: transparent !important;
}

.positioning-region,
.content-region {
    background: transparent !important;
    background-color: transparent !important;
}

.fluent-nav-item.expander {
    background: transparent !important;
    background-color: transparent !important;
}

/* Daha agresif yaklaşım - FluentUI CSS variables override */
fluent-nav-menu,
fluent-nav-link,
fluent-nav-group {
    --neutral-layer-card-container: transparent !important;
    --neutral-layer-floating: transparent !important;
    --neutral-layer-1: transparent !important;
    --neutral-layer-2: transparent !important;
    --neutral-layer-3: transparent !important;
    --neutral-layer-4: transparent !important;
    --neutral-fill-rest: transparent !important;
    --neutral-fill-hover: transparent !important;
    --neutral-fill-active: transparent !important;
    --neutral-fill-focus: transparent !important;
    --accent-fill-rest: transparent !important;
    --accent-fill-hover: transparent !important;
    --accent-fill-active: transparent !important;
}

/* Tüm FluentNavMenu ve alt elementlerini hedefle */
fluent-nav-menu *,
.fluent-nav-menu *,
fluent-nav-link *,
.fluent-nav-link *,
fluent-nav-group *,
.fluent-nav-group * {
    background: transparent !important;
    background-color: transparent !important;
}

.navmenu-icon {
    display: none;
}

.brand-logo {
    font-family: 'Damion', cursive;
    font-size: 40px;
    color: white;
    text-decoration: none;
    font-weight: normal;
    margin: 0;
    padding: 0;
}

.main {
    min-height: calc(100dvh - 86px);
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.body-content {
    align-self: stretch;
    
}

.content {
    width: 100%;
}

.page-container {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.loading-state, .empty-state {
    padding: 30px !important;
    text-align: center;
    color: #666;
}

.empty-content-row {
    height: 58px !important;
}

.col-sort-button::part(control) {
    background-color: transparent !important;
}

.manage {
    width: 100dvw;
}

footer {
    background: var(--neutral-layer-3);
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 10px 10px;
}

    footer a {
        color: var(--neutral-foreground-rest);
        text-decoration: none;
    }

        footer a:focus {
            outline: 1px dashed;
            outline-offset: 3px;
        }

        footer a:hover {
            text-decoration: underline;
        }

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}


#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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::before {
        content: "An error has occurred. "
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem 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;
}

@media (max-width: 600px) {

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

        #main-menu > div:first-child:is(.expander) {
            display: none;
        }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

        #navmenu-toggle ~ nav {
            display: none;
        }

        #navmenu-toggle:checked ~ nav {
            display: block;
        }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        left: unset;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }

    .fluent-nav-item {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        white-space: nowrap;
    }
   

    .fluent-collapsible-region-container .items {
        width: 100% !important;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }
}

fluent-tabs::part(activeIndicator) {
    width: 85% !important;
}

.custom-grid .fluent-data-grid-row td {
    height: 60px !important;
    overflow: unset !important;
}

.custom-grid .fluent-data-grid-row th {
    position: sticky;
    top: 0;
    background: var(--neutral-layer-2);
    z-index: 1;
}

.paginator {
    position: sticky;
    bottom: 0;
    z-index: 1000;
    background: var(--neutral-layer-2);
    margin-top: 0 !important;
    padding: 8px !important;
}

.icon-text {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

    .icon-text span {
        margin-left: 8px;
    }

.grid-wrapper {
    min-height: 0;
    display: flex;
    height: auto;
    flex-direction: column;
    padding: 0 !important;
}

.scrollable-container {
    height: auto;
    max-height: 100%;
    min-height: 0;
    overflow: auto;
}

.header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Header Content (PaketRota text) */
.header-gutters {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--accent-fill-rest) !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}


/* Login Link */
.header .fluent-nav-link {
    background-color: var(--neutral-layer-1) !important;
    color: var(--accent-fill-rest) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.3s ease-in-out !important;
}

.fluent-nav-link:hover {
    color: var(--accent-fill-rest) !important;
}

.fluent-nav-text {
    display: inline-block !important;
    vertical-align: middle !important;
}

.size24-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 24px !important;
}

.size32-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
}

.size48-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 48px !important;
}

working-hours-grid-container {
    height: 48px !important;
}


    .persona-button::part(control) {
        background: none;
    }

    .persona-button:hover::part(control) {
        background: none;
    }

.popover {
    margin-top: 4px;
}

.account-popover {
    min-width: 300px;
    background: var(--neutral-layer-2);
    border-radius: 4px;
    padding: 16px;
}

.account-header {
    margin-bottom: 16px;
}

.account-persona .initials .fluent-presence-badge {
    font-size: 18px !important;
    white-space: wrap !important;
    font-weight: 600;
}

.company-name {
    font-size: 14px;
    color: var(--neutral-foreground-rest);
    margin-bottom: 12px;
}

.account-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
}

.account-details {
    flex: 1;
    flex-direction: column;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}

    .account-actions fluent-button {
        align-self: flex-start;
    }

.sign-out-button {
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
}

.fluent-popover-content {
    padding: 0 !important;
}

fluent-dialog {
    max-height: 1080px !important;
    z-index: 20 !important;
}

    fluent-dialog::part(control) {
        background-color: var(--dialog-background-color) !important;
        /*width: auto !important;*/
        /*max-width: 600px !important;*/
        margin: 40px auto !important;
        margin-bottom: 20px !important;
        max-height: 720px;
        overflow-y: hidden !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: calc(var(--layer-corner-radius)* 1px) !important;
        border: calc(var(--stroke-width)* 1px) solid var(--accent-fill-rest) !important;
    }

fluent-dialog::part(overlay) {
    backdrop-filter: blur(2px) !important;
    pointer-events: none !important;
}
   
fluent-dialog .fluent-dialog-body {
        min-height: unset !important;
        overflow-x: hidden !important;
}

fluent-dialog .fluent-dialog-footer {
    position: sticky !important;
    bottom: 0 !important;
    padding: 8px !important;
    border-top: 1px solid var(--neutral-stroke-rest) !important;
}

/* FluentUI Select Styling */
select {
    appearance: none;
    background-color: var(--neutral-fill-input-rest);
    border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-input-rest);
    border-radius: calc(var(--control-corner-radius) * 1px);
    color: var(--neutral-foreground-rest);
    line-height: 20px;
    min-height: 32px;
    padding: 0 calc(var(--design-unit) * 2.25px) 0 calc(var(--design-unit) * 2.25px);
    width: 100%;
    outline: none;
    transition: all 0.1s ease-in-out;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23999' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right calc(var(--design-unit) * 2.25px) center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
}

select:hover {
    background-color: var(--neutral-fill-input-hover);
}

select:focus {
    background-color: var(--neutral-fill-input-focus);
    border: 1px solid var(--accent-fill-rest);
}

select:disabled {
    background-color: var(--neutral-fill-input-disabled);
    border-color: var(--neutral-stroke-input-disabled);
    color: var(--neutral-foreground-disabled);
    cursor: not-allowed;
    opacity: var(--disabled-opacity);
}

select option {
    background-color: var(--neutral-fill-layer-rest);
    color: var(--neutral-foreground-rest);
    padding: calc(var(--design-unit) * 1px) calc(var(--design-unit) * 2.25px);
}

select option:checked {
    background-color: var(--accent-fill-rest);
    color: var(--foreground-on-accent-rest);
}

/* Dark theme adjustments */
[data-theme="dark"] select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ccc' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Responsive design for screens below 1440px */
@media (max-width: 1440px) {
    /* Brand logo - nuclear option with maximum specificity */
    html body fluent-layout fluent-header span.brand-logo,
    html body div fluent-header span.brand-logo,
    fluent-header span.brand-logo,
    span.brand-logo {
        font-size: 24px !important;
        font-family: 'Damion', cursive !important;
    }

    /* Header gutters - target Blazor scoped CSS directly */
    fluent-header .header .header-gutters[class*="b-"],
    .header .header-gutters[class*="b-"],
    [class*="header-gutters"][class*="b-"] {
        margin: 8px !important;
        padding: 8px !important;
    }
}

/* ============================================
   FluentUI Combobox - Global Styles
   ============================================ */

/* Combobox height */
fluent-combobox {
    --combobox-height: 32px;
}

/* Combobox listbox (dropdown) */
fluent-combobox::part(listbox) {
    max-height: 300px;
    overflow-y: auto;
}

/* Combobox scrollbar - Webkit browsers */
fluent-combobox::part(listbox)::-webkit-scrollbar {
    width: 8px;
}

fluent-combobox::part(listbox)::-webkit-scrollbar-track {
    background: var(--neutral-layer-3);
    border-radius: 4px;
}

fluent-combobox::part(listbox)::-webkit-scrollbar-thumb {
    background: var(--neutral-fill-stealth-hover);
    border-radius: 4px;
}

fluent-combobox::part(listbox)::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-fill-stealth-active);
}

/* Combobox scrollbar - Firefox */
fluent-combobox::part(listbox) {
    scrollbar-width: thin;
    scrollbar-color: var(--neutral-fill-stealth-hover) var(--neutral-layer-3);
}

/* Dark theme adjustments */
[data-theme="dark"] fluent-combobox::part(listbox)::-webkit-scrollbar-track {
    background: var(--neutral-layer-2);
}

/* ============================================
   Tour System - Global Styles
   ============================================ */

/* Pulse animation for highlighted elements */
@keyframes tour-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.9),
            0 0 0 8px rgba(59, 130, 246, 0.6),
            0 0 40px rgba(59, 130, 246, 0.8);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 1),
            0 0 0 12px rgba(59, 130, 246, 0.7),
            0 0 50px rgba(59, 130, 246, 1);
    }
}
