/* FooodApp Premium Global CSS & System UI Polish */

/* Root and Base Resets */
html {
    scrollbar-gutter: stable;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Premium Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(154, 160, 166, 0.2);
    border-radius: 9999px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 140, 6, 0.4); /* Brand primary color on hover */
}

/* Dark Mode specific scrollbars */
.dark ::-webkit-scrollbar-thumb {
    background: rgba(38, 42, 48, 0.8);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 140, 6, 0.5);
}

/* Glassmorphism utility helpers */
.glass-panel {
    background: rgba(22, 24, 27, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Smooth UI transitions */
.transition-premium {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* KDS Focus Mode Layout Polish */
.kds-focus-mode header,
.kds-focus-mode aside {
    display: none !important;
}

.kds-focus-mode main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
}

/* Hide print elements during standard display */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Premium Toast Container Stacking */
#toast-root {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
    z-index: 10000;
    pointer-events: none;
}
