
@import url(assets.css);

* {
    -webkit-user-select: none;
    user-select: none;
    font-family: 'Segoe UI Variable Text', "Segoe UI", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    text-rendering: optimizeLegibility;
    cursor: url(../res/cursors/pointer.ani), pointer;
    box-sizing: border-box;
}

:root {
    --dark: initial;
    --toast-width: 360px;
    --toast-radius: 8px;
    --toast-padding: 16px;
    --toast-bg: rgba(32, 32, 32, 0.6);
    --toast-border: rgba(255, 255, 255, 0.12);
    --toast-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 4px 24px rgba(0, 0, 0, 0.4);
    --toast-btn-bg: rgba(255, 255, 255, 0.05);
    --toast-btn-border-bottom: rgba(255, 255, 255, 0.25);
    --toast-font: "segoe_ui_variable", system-ui, sans-serif;

    --Animation-Linear: cubic-bezier(0,0,1,1);
    --Animation-EaseIn:	cubic-bezier(0.7, 0, 1, 0.5);
    --Animation-EaseOut: cubic-bezier(0.0, 0.6, 0.4, 1);
    --Animation-EaseInOut: cubic-bezier(0.4, 0, 0.2, 1);
    --Animation-FastIn: cubic-bezier(0.8,0,1,1);
    --Animation-FastOut: cubic-bezier(0,0,0.2,1);
    --Animation-FastInOut: cubic-bezier(0.8,0,0.2,1);

    --PrimaryColorLight: #B3C5D2;
    --PrimaryColor: #B3C5D2;
    --PrimaryColorBackdrop50: #20202000;
    --PrimaryColorBackdrop20: #202020f7;

    --platform: "windows11";
    --color-danger-default: var(--dark, #FF99A3) var(--light, #C50500);
    --color-success-default: var(--dark, #6ACB5D) var(--light, #2C8B2C);
    --color-scheme-absolute: var(--dark, #000) var(--light, #FFF);
    --color-background-default: var(--dark, #111) var(--light, #FFF);
    --color-button-default: var(--dark, #3E3E3EBB) var(--light, #FEFEFEDD);
    --color-card-bg-default: var(--dark, #303030) var(--light, #FBFBFB);
    --color-day-primary-night-grey: var(--dark, #403E41) var(--light, var(--PrimaryColor));
    --color-day-primary-night-white: var(--dark, #FFF) var(--light, var(--PrimaryColor));
    --color-dropdown-menu-bg: var(--dark, #202020) var(--light, #F8F8F8);
    --color-foreground-default: var(--dark, #2B2B2B) var(--light, #fff);
    --color-foreground-dark: var(--dark, #444) var(--light, #EEE);
    --color-input-border-default: var(--dark, #303030) var(--light, #55555544);
    --color-input-border-strong: var(--dark, #9A9A9A) var(--light, #8A8A8A);
    --color-ui-active-default: var(--dark, #262626) var(--light, #D8D8D8);
    --color-navbar-bg-default: var(--dark, #202020) var(--light, #F3F3F3);
    --color-primary-adaptive: var(--dark, var(--PrimaryColorLight)) var(--light, var(--PrimaryColor));
    --color-primary-alpha: var(--dark, #EEEEEE9C) var(--light, #EEEEEE9C);
    --color-progress-bg: var(--dark, #484848) var(--light, #E2E2E2);
    --color-slider-thumb-bg: var(--dark, #454545) var(--light, #FFF);
    --color-text-default: var(--dark, #FFF) var(--light, #000);
    --color-ui-border-default: var(--dark, #282828) var(--light, #E3E3E3);
    --color-ui-hover-default: var(--dark, #44444477) var(--light, #EEEEEED1);
    --color-ui-hover-strong: var(--dark, #2D2D2D) var(--light, #E8E8E8);

    
    --window-border-radius: 8px;
}

body {
    margin: 0;
    padding: 0;
    background-color: #101010;
    font-family: 'Segoe UI Variable Text', "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 12px;
}


.acrylic {
    position: relative;
    overflow: hidden;

    --noise-opacity: 0.2;
    --acrylic-tint-color: #202020;
    --acrylic-tint-opacity: 0.8;
    --acrylic-tint-luminosity-opacity: 1.5;
    
    background-color: color-mix(in srgb, var(--acrylic-tint-color), transparent calc(100% - (var(--acrylic-tint-opacity) * 100%)));
    
    backdrop-filter: blur(32px) saturate(var(--acrylic-tint-luminosity-opacity));
}

.acrylic.surface {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 
                0 1px 2px rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.acrylic::before,
.noise-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  filter: url(#noise);
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
  pointer-events: none;
  transform: translateZ(0);
}




.winui-compact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    max-height: 24px;
    min-height: 24px;
    min-width: 24px;
    font-size: 9pt;
    font-weight: 500;
    box-shadow: 
        0px 0.5px 1px rgba(0, 0, 0, 0.05);
    
    border: 1px solid;
    user-select: none;
    border-radius: 4pt;
    color: var(--color-text-default);
    background-color: #8f8f8f17;
    border-color: rgba(255, 255, 255, 0.02);
    /*border-bottom-color: var(--dark, rgba(0, 0, 0, 0.08)) var(--light, rgba(0, 0, 0, 0.2));*/
    border-top-color: var(--dark, rgba(117, 117, 117, 0.22)) var(--light, rgba(0, 0, 0, 0.08));
    transition: background-color 200ms, transform 500ms, filter 500ms, border-color 200ms;
    padding: 0 3px; 
}

.winui-compact-button span { 
    margin: 0 4px; 
    font-family: 'segoe_ui_variable', system-ui, sans-serif;
    line-height: 22px; 
    white-space: nowrap;
}

.winui-compact-button svg,
.winui-compact-button img { 
    opacity: 0.9;
}

.winui-compact-button:has(> img + span) > img,
.winui-compact-button:has(> svg + span) > svg {
    width: 12px;
    height: 12px;
    margin-left: 6px;
    margin-bottom: 1.1px;
}

.winui-compact-button:has(> span + img) > img,
.winui-compact-button:has(> span + svg) > svg {
    width: 12px;
    height: 12px;
    margin-left: 6px;
    margin-bottom: 1.1px;
}

.winui-compact-button svg:only-child,
.winui-compact-button img:only-child {
    margin: 0; 
    transform: translate(-1px, -1px);
    width: 11pt;
    height: 11pt;
}

.winui-compact-button:hover {
    background-color: #ffffff10;
    border-color: rgba(255, 255, 255, 0.05);
}

.winui-compact-button:active {
    transition: background-color 150ms, transform 50ms, filter 150ms, border-color 50ms;
    background: #7f7f7f07;
    transform: scale(0.98) rotateX(2deg) rotateY(-2deg);
    filter: blur(0.1pt);
    border-color: rgba(255, 255, 255, 0.1);
}

.parallax-wallpaper {
	position: fixed;
	top: 0;
	left: 0;
    width: 100%;
    height: 100%;
	overflow: hidden;
	pointer-events: none;
	z-index: -10001;
}

.parallax-wallpaper-img {
    filter: saturate(1.27);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
    z-index: -10000;
}

#selection-box {
	position: fixed;
	box-shadow: inset 0 0 0 1px #0078D7;
	background-color: #0078D74c;
	pointer-events: none;
	display: none;
	z-index: -9999;
}

.desktop {
    display: flex;
    position: fixed;
    width: 100%;
    height: calc(100vh - 49px);
}

.desktop .license-label {
    position: absolute;
    bottom: 4px;
    right: 4px;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.6), 
                 1px 1px 2px rgba(0, 0, 0, 0.4);
    text-align: right;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 47px;
    z-index: 12000;
    outline: solid thin #ffffff20;
    --acrylic-tint-color: #171717;
    --acrylic-tint-opacity: 0.6;
    --acrylic-tint-luminosity-opacity: 1.5;
    --noise-opacity: 0.2;
    overflow: hidden;
}


.taskbar-left {
    position: absolute;
    left: 0;
    top: 0;
    padding: 3px 12px 3px 12px;
    height: 100%;
    max-width: 70%;
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 4px;
}

.taskbar-tray {
    position: absolute;
    right: 0;
    top: 0;
    padding: 3px 12px 3px 12px;
    height: 100%;
    display: flex;
    align-items: center; 
    justify-content: center;
    flex-direction: row-reverse;
    gap: 0px;
}

.taskbar-button {
    min-width: 41px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    background-color: transparent;
    box-shadow: inset 0 0px 0 #ffffff00;
    align-items: center;
    justify-content: center;
    transition: box-shadow 50ms var(--Animation-EaseIn), background-color 100ms var(--Animation-EaseOut);
}


.taskbar-button-indicator {
    position: absolute;
    bottom: 5px;
    align-self: center;
    width: 6px;
    height: 3px;
    background-color: var(--color-primary-adaptive);
    filter: brightness(3) saturate(0);
    opacity: 0.7;
    border-radius: 2px;
    transition: width 200ms var(--Animation-EaseOut), background-color 200ms var(--Animation-EaseOut);
}

.taskbar-button.focused .taskbar-button-indicator {
    width: 16px;
    filter: brightness(3) saturate(0.7);
}

.taskbar-button.focused,
.taskbar-button.active,
.taskbar-button:hover {
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); 
}



.taskbar-button:active {
    background-color: rgba(111, 111, 111, 0.2);
    box-shadow: rgba(111, 111, 111, 0.01);
}

.taskbar-button-icon-container:not(.taskbar-tray-icon-container):active {
    transform: scale(0.8) rotateX(10deg) rotateY(-5deg);
    transition: transform 0.2s var(--Animation-EaseOut), filter 0.2s var(--Animation-EaseOut), opacity 0.1s var(--Animation-EaseOut);
}

.taskbar-button-icon-container.taskbar-tray-icon-container:active {
    opacity: 0.7;
}

.taskbar-button-icon-container.start-button-icon-container:active {
    filter: contrast(0.05) saturate(20) hue-rotate(14deg);
}

.taskbar-button:has(.taskbar-button-indicator) .taskbar-button-icon-container {
    margin-bottom: 2px;
}

.taskbar-button-icon-container.taskbar-tray-icon-container .taskbar-button-icon {
    margin-top: -1px;
}


.taskbar-button-icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    justify-content: center;
    -webkit-user-drag: none;
    transition: transform 0.2s var(--Animation-EaseIn), filter 0.2s var(--Animation-EaseIn), opacity 0.1s var(--Animation-EaseIn);
}

.taskbar-button-icon-container img,
.taskbar-button-icon-container svg,
.taskbar-button-icon {
    margin-top: 0.5px;
    margin-left: 1px;
    max-width: 24px;
    max-height: 24px;
    display: flex;
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-user-drag: none;
}

.taskbar-button-text-container {
    font-family: 'Segoe UI Variable Display', "Segoe UI", 'Microsoft JhengHei', system-ui, sans-serif;
    font-feature-settings: "ss01", "tnum";
    letter-spacing: 0.5px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    padding: 6px 6px 8px 8px;
    font-size: 11.5px;
    display: flex;
    gap: 1px;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    padding-right: 8px;
    color: #eeeeee;
    transition: opacity 0.1s var(--Animation-EaseIn);
}



.taskbar-button-text-container:active {
    opacity: 0.7;
}

.preload-html { display: none; }



[data-theme="dark"] {
    --light: ;
    --dark: initial;
    color-scheme: dark;
}

#toast-container {
    position: fixed;
    right: 20px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: var(--toast-width);
    font-family: var(--toast-font);
    z-index: 99999;
    pointer-events: auto;
}

.toast {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--toast-bg);
    border-radius: var(--toast-radius);
    backdrop-filter: blur(30px);
    border: 1px solid var(--toast-border);
    box-shadow: var(--toast-shadow);
    padding: var(--toast-padding);
    color: #fff;
    opacity: 0;
    transform: translateX(100%);
    animation-fill-mode: forwards;
    animation-duration: 200ms;
    animation-timing-function: var(--Animation-EaseIn);
    transition: transform 200ms var(--Animation-EaseOut), opacity 100ms var(--Animation-EaseOut);
}

.toast.show {
    animation-name: slideInWin11;
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    animation-name: slideOutWin11;
    opacity: 0.95;
    transform: translateX(100%);
}

.toast.shrinking {
    animation: shrinkOut 200ms var(--Animation-EaseOut) forwards;
}

.toast.slide-out {
    animation: slideOutShrunk 200ms var(--Animation-EaseOut) forwards;
}

@keyframes shrinkOut {
    to {
        transform: scale(0.9);
    }
}

@keyframes slideOutShrunk {
    0% {
        transform: scale(0.9) translateX(0);
    }
    100% {
        transform: scale(0.9) translateX(100%);
    }
}

@keyframes slideInWin11 {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes slideOutWin11 {
    0% {
        transform: translateX(0);
    }
    100% {
        opacity: 1;
        transform: translateX(100%);
    }
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.toast-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.toast-app {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
    flex-grow: 1;
    margin-left: 6px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin: 8px 0 2px;
    line-height: 1.2;
}

.toast-message {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0;
}

.toast-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.toast-btn {
    flex: 1;
    min-width: 160px;
    height: 32px;
    background-color: var(--toast-btn-bg);
    border: none;
    border-bottom: 1px solid var(--toast-btn-border-bottom);
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 10pt;
}


#tooltip { 
	background: rgba(64, 64, 64, 0.5);
	backdrop-filter: blur(16px) saturate(1.8) brightness(0.5);
	color: white;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12px;
	opacity: 0;
	visibility: hidden;
	display: none;
	left: -9999px;
	top: -9999px;
    transition: opacity 0.2s ease, transform 0.2s var(--Animation-EaseIn), left 0.2s var(--Animation-EaseIn), top 0.2s var(--Animation-EaseIn);
	transform: translateX(-50%) translateY(0);
	max-width: 400px;
	white-space: pre-line; 
	z-index: 100000;
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3),
                0 1px 1px rgba(0, 0, 0, 0.5);
    pointer-events: none; 
    position: fixed; 
}


#action-center {
    position: fixed;
    bottom: 59px; 
    right: 12px;  
    display: flex;
    flex-direction: column; 
    z-index: 10000;
    transform: translateX(110%); 
    transition: transform 200ms var(--Animation-EaseInOut);
    width: 360px; 
    padding: 0;   
    gap: 12px;     
    max-height: calc(100vh - 59px - 12px); 
}

#action-center.show {
    transform: translateX(0); 
}

#notification-panel, 
#calendar-panel {
    width: 100%; 
    padding: 12px 12px; 
    font-family: 'segoe_ui_variable', 'segoe_ui', system-ui, sans-serif;
    overflow: hidden;
}

#calendar-panel {
    min-height: 100px;
}

#notification-panel {
    min-height: 232px;
    display: flex;
    flex-direction: column;
}

.calendar-header,
.action-center-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 3pt;
    margin-bottom: 12pt; 
}

.calendar-header {
    margin-top: 3pt;
}

.calendar-header-title,
.action-center-header-title {
    color: #ffffff;
    font-family: 'segoe_ui_variable', 'segoe_ui', system-ui, sans-serif;
    font-size: 14px; 
    font-weight: 500; 
}

#notification-panel hr,
#calendar-panel hr { 
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.3); 
    margin: 12px -12px; 
}

.calendar-focus-section {
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.focus-controls-group { 
    display: flex;
    align-items: center;
    gap: 16px; 
}

.focus-controls-group .calendar-focus-time {
    text-align: center; 
}

.calendar-focus-time { 
    display: flex;
    align-items: baseline;
    gap: 4px; 
    color: #ffffff;
}

.calendar-focus-time-value { 
    font-family: 'Segoe UI Variable Static Display', 'segoe_ui', system-ui, sans-serif;
    font-size: 10.5pt; 
    font-weight: 560;
}

.calendar-focus-time-unit { 
    font-family: 'Segoe UI Variable Static Display', 'segoe_ui', system-ui, sans-serif;
    font-size: 10pt; 
    font-weight: 350; 
    opacity: 0.75; 
    padding-bottom: 3px; 
}

.action-center-notification-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 60px;
    overflow-y: auto;
    flex-grow: 1; 
}

.action-center-no-notifications {
    display: block;
    color: var(--color-text-default); 
    text-align: center;
    margin: 56px 0 56px 0;
    padding: 10px 0; 
    opacity: 0;
    transition: opacity 1000ms var(--Animation-EaseInOut);
}

.notification-section-clear-all {
    opacity: 0;
    transition: opacity 500ms var(--Animation-EaseOut);
}

.action-center-notificaiton-container.notification-added .action-center-no-notifications {
    display: none;
}

.action-center-notification {
    padding: 8px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.02);
    margin-bottom: 4px;
    transition: background-color 0.2s ease;
}

.action-center-notification:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.action-center-notification .toast-header {
    margin-bottom: 4px;
}

.action-center-notification .toast-title {
    font-size: 14px;
    margin: 4px 0;
}

.action-center-notification .toast-message {
    font-size: 13px;
}

.notification-timestamp {
    font-size: 10px;
    color: #aaa;
    margin-top: 4px;
    text-align: right;
}

/* Start Menu Styles */
.start-menu {
    position: fixed;
    margin-top: 12px;
    bottom: calc(46px + 12px); 
    left: 10px;
    width: 640px;
    height: 724px;
    max-height: calc(100vh - 46px - 12px); 
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.2s var(--Animation-FastIn);
    display: flex;
    justify-content: space-between; 
    flex-direction: column;
    pointer-events: none;
}

.start-menu.show {
    transition: transform 0.2s var(--Animation-EaseInOut);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.start-menu-container {
    margin: 32px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    justify-content: space-between; 
}

.start-menu-search-container {
    margin-bottom: 24px;
}



.input-box-icon-left {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.input-box-icon-right {
    margin-left: auto;
    width: 16px;
    height: 16px;
}

.input-box-rounded {
    display: flex;
    align-items: center;
    background-color: #1e1e1eaa; 
    border-radius: 15px;
    padding: 8px 12px;
    max-height: 30px;
    margin: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.input-box-rounded input {
    border: none;
    outline: none;
    background-color: transparent;
    color: #fff;
    font-size: 14px;
    width: 100%;
}

.start-menu-pinned {
    flex-grow: 1;
    padding: 0px 8px;
    overflow-y: auto;
}

.start-menu-pinned-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 32px;
}

.start-menu-pinned-header-text {
    font-size: 10pt;
    font-weight: 600;
}

.start-menu-all-apps-button {
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 12px;
}

.start-menu-pinned-apps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.start-menu-pinned-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 84px;
    padding: 2px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.start-menu-pinned-app:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.start-menu-pinned-app:active {
    background-color: rgba(255, 255, 255, 0.03);
}

.start-menu-pinned-app-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    transition: transform 0.2s var(--Animation-EaseIn);
}

.start-menu-pinned-app:active .start-menu-pinned-app-icon {
    transform: scale(0.8);
}

.start-menu-pinned-app-name {
    font-size: 12px;
    text-align: center;
}

.start-menu-user-profile-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 56px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    height: 64px;
    background-color: #00000024;
}

.start-menu-user-profile-section-left {
    display: flex;
    align-items: center;
}

.start-menu-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0px 12px 0px 12px;
    border-radius: 4px;
}

.start-menu-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.start-menu-user span {
    margin-top: 2px;
    font-size: 11.5px;
}

.start-menu-user-profile-section-right {
    display: flex;
    align-items: center;
}

.start-menu-folder-container {
    display: flex;
    gap: 0px;
    flex-direction: row-reverse;
}

.start-menu-toolbar-button {
    min-width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    background-color: transparent;
    box-shadow: inset 0 0px 0 #ffffff00;
    align-items: center;
    justify-content: center;
    transition: box-shadow 50ms var(--Animation-EaseIn), background-color 100ms var(--Animation-EaseOut);
}

.start-menu-toolbar-button:hover {
    background-color: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.01); 
}

.start-menu-toolbar-button:active {
    background-color: rgba(111, 111, 111, 0.2);
    box-shadow: rgba(111, 111, 111, 0.01);
    opacity: 0.9;
}

.start-menu-toolbar-button svg {
    width: 20px;
    height: 20px;
    margin: 0;
    fill: #ffffff;
    opacity: 0.7;
}

#aero-snap-overlay {
    position: fixed;
    background-color: #a0a0a04f;
    min-height: 20px;
    min-width: 20px;
    opacity: 0;
    backdrop-filter: blur(64px) brightness(0.9);
    border-radius: 8px;
    border: 1px solid #40404010;
    z-index: 18;
    pointer-events: none;
    box-shadow: 0px 24px 48px #00000040;
    transition: top 60ms linear, left 60ms linear, width 60ms linear, height 60ms linear, opacity 500ms var(--Animation-EaseOut);
}

#aero-snap-overlay.show {
    transition: top 200ms var(--Animation-EaseInOut), left 200ms var(--Animation-EaseInOut), width 200ms var(--Animation-EaseInOut), height 200ms var(--Animation-EaseInOut), opacity 500ms step-start;
    opacity: 1;
}



.window {
    width: 854px; height: 480px;
    min-width: 196px; min-height: 32px;
    position: fixed;
    top: 48px; left: 48px;
    background-color: #202020d0;
    border: 1px solid rgba(177, 177, 177, 0.4);
    backdrop-filter: blur(16px) saturate(1.2) brightness(0.9);
    border-radius: var(--window-border-radius);
    transition: transform 200ms var(--Animation-EaseOut), opacity 200ms var(--Animation-EaseOut), perspective 200ms var(--Animation-EaseOut), width 50ms var(--Animation-EaseOut), height 50ms var(--Animation-EaseOut), top 50ms var(--Animation-EaseOut), left 50ms var(--Animation-EaseOut), background-color 200ms linear;
    transform: scale(90%);
    box-shadow: 0px 24px 48px #00000060;
    opacity: 0;
    z-index: 1;
    --noise-opacity: 0.05;
}

.window:not(.focused) {
    box-shadow: 0px 16px 32px #00000030;
    background-color: var(--PrimaryColorBackdrop20);
}

.window:not(.focused) span {
    opacity: 0.6;
}

.window.focused {
    z-index: 20;
}

#window-template {
    display: none;
    visibility: hidden;
}

.window.show {
    transition: transform 200ms var(--Animation-EaseInOut), opacity 200ms var(--Animation-EaseInOut), perspective 200ms var(--Animation-EaseInOut), width 200ms var(--Animation-EaseInOut), height 200ms var(--Animation-EaseInOut), top 200ms var(--Animation-EaseInOut), left 200ms var(--Animation-EaseInOut);
    transform: scale(100%);
    opacity: 1;
}

.window.minimized {
    transition: transform 250ms var(--Animation-FastIn), opacity 250ms var(--Animation-FastIn);
    transform: translateX(-50vw) translateY(50vh) scale(0.2);
    opacity: 0;
}


.window.maximized {
    transition: all 200ms var(--Animation-EaseOut);
    position: fixed;
    top: 0 !important; left: 0 !important;
    margin: 0;
    width: 100vw !important; height: calc(100vh - 46px) !important; /* Taskbar height */
    border-radius: 0px;
    border: 0px solid rgba(255, 255, 255, 0.2);
}

.window.maximized .window-control.maximize-button span::before {
    content: "\e923"; /* Windows 11 restore icon */
}
.window:not(.maximized) .window-control.maximize-button span::before {
    content: "\e922"; /* Windows 11 maximise icon */
}

.window-titlebar {
    background-color: var(--PrimaryColorBackdrop50);
    display: flex;
    top: 0px; left: 0px;
    width: 100%; height: 30px;
    z-index: 20;
    overflow: hidden;
}

.window:not(.maximized) .window-titlebar {
    border-top-left-radius: calc(var(--window-border-radius) - 1px);
    border-top-right-radius: calc(var(--window-border-radius) - 1px);
}

.maximized .window-titlebar  {
    height: 24px;
}

.window-titlebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    height: 100%;
}

.window-titlebar-icon {
    width: 16px; height: 16px;
    display: inline-block;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-left: auto;
    height: 100%;
    z-index: 100;
}

.window-control {
    width: 45px; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 100ms, opacity 100ms;
    opacity: 0.7;
}

.window-control.close-button {
    background: #ff000000;
}

.window-control:hover {
    background: #ffffff10;
    opacity: 1;
}

.window-control.close-button:hover {
    background: #C42B1C;
}

.window-control span {
    font-family: 'Segoe Fluent Icons', system-ui, sans-serif;
    font-size: 10px;
    transform: translate(0.5px, 0px);
}

.window-content {
    position: absolute;
    display: flex;
    top: 30px; left: 0px;
    flex-direction: column;
    width: 100%; height: calc(100% - 30px);
    margin: 0;
    background-color: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: inherit;
}

.window:not(.maximized) .window-content {
    border-radius: calc(var(--window-border-radius) - 1px);
    border-top-left-radius: 0; border-top-right-radius: 0;
}

.window-focus-area {
    position: absolute;
    display: flex;
    width: 100%; height: 100%;
    z-index: 10;
}

.window-app-content {
    width: 100%;
    height: auto;
    flex-grow: 1;
    overflow-y: auto;
    border: none;
    z-index: inherit;
}

.maximized .window-content  {
    top: 22px; left: 0px;
    width: 100%; height: calc(100% - 22px);
}


.window-resizer {
    position: absolute;
    background-color: transparent; 
    
    z-index: 21; 
}

.window-resizer.top {
    left: 4px;
    right: 4px;
    height: 8px;
    top: -6px;
    cursor: ns-resize;
}
.window-resizer.top:active {
    height: 50px;
    top: -20px; /* -2 - (15-5)/2 = -7 */
}

.window-resizer.bottom {
    left: 4px;
    right: 4px;
    height: 8px;
    bottom: -6px;
    cursor: ns-resize;
}
.window-resizer.bottom:active {
    height: 50px;
    bottom: -20px; /* -2 - (15-5)/2 = -7 */
}

.window-resizer.left {
    top: 4px;
    bottom: 4px;
    width: 8px;
    left: -6px;
    cursor: ew-resize;
}
.window-resizer.left:active {
    width: 50px;
    left: -20px; 
}

.window-resizer.right {
    top: 4px;
    bottom: 4px;
    width: 8px;
    right: -6px;
    cursor: ew-resize;
}
.window-resizer.right:active {
    width: 50px;
    right: -7px; /* -2 - (15-5)/2 = -7 */
}

.window-resizer.top-left {
    top: -8px;
    left: -8px;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
}
.window-resizer.top-left:active {
    top: -12px; /* -2 - (30-10)/2 = -12 */
    left: -12px; /* -2 - (30-10)/2 = -12 */
    width: 30px;
    height: 30px;
}

.window-resizer.top-right {
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    cursor: nesw-resize;
}
.window-resizer.top-right:active {
    top: -12px; /* -2 - (30-10)/2 = -12 */
    right: -12px; /* -2 - (30-10)/2 = -12 */
    width: 30px;
    height: 30px;
}

.window-resizer.bottom-left {
    bottom: -8px;
    left: -8px;
    width: 16px;
    height: 16px;
    cursor: nesw-resize;
}
.window-resizer.bottom-left:active {
    bottom: -12px; /* -2 - (30-10)/2 = -12 */
    left: -12px; /* -2 - (30-10)/2 = -12 */
    width: 30px;
    height: 30px;
}

.window-resizer.bottom-right {
    bottom: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
}
.window-resizer.bottom-right:active {
    bottom: -12px; /* -2 - (30-10)/2 = -12 */
    right: -12px; /* -2 - (30-10)/2 = -12 */
    width: 30px;
    height: 30px;
}

.browser-address-bar {
    width: 100%;
}

.browser-controls {
    background-color: #2f2f2fdd;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 8px;
    gap: 4px;
}


.template {
    display: none;
    visibility: hidden;
    margin: 0;
}

.no-transition {
    transition: none !important;
}