/* Manual Theme Overrides */
body.light-theme {
    --bg-color: #f3f3f3;
    --taskbar-bg: rgba(243, 243, 243, 0.85);
    --start-menu-bg: rgba(243, 243, 243, 0.85);
    --window-bg: #ffffff;
    --text-color: #000000;
    --hover-bg: rgba(193, 240, 255, 0.384);
    --border-color: rgba(0, 0, 0, 0.1);
    --icon-filter: none;
    --address-bar-bg: #f1f3f4;
    --browser-header-bg: #f1f3f4;
    --browser-tabs-bg: #dee1e6;
}

body.dark-theme {
    --bg-color: #202020;
    --taskbar-bg: rgba(32, 32, 32, 0.85);
    --start-menu-bg: rgba(32, 32, 32, 0.85);
    --window-bg: #2c2c2c;
    --text-color: #ffffff;
    --hover-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --icon-filter: invert(1);
    --address-bar-bg: rgba(255, 255, 255, 0.1);
    --browser-header-bg: #2b2b2b;
    --browser-tabs-bg: #202020;
}

:root {
    /* Windows 11 Color Palette */
    --bg-color: #f3f3f3;
    --taskbar-bg: rgba(243, 243, 243, 0.85);
    --start-menu-bg: rgba(243, 243, 243, 0.85);
    --window-bg: #ffffff;
    --text-color: #000000;
    --accent-color: #0078D7;
    --hover-bg: rgba(193, 240, 255, 0.384);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.14);
    --glass-blur: blur(20px);
    --border-radius: 8px;
    --taskbar-height: 48px;
    --icon-filter: none;
    --address-bar-bg: #f1f3f4;
    --browser-header-bg: #f1f3f4;
    --browser-tabs-bg: #dee1e6;
}

/* @media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #202020;
        --taskbar-bg: rgba(32, 32, 32, 0.85);
        --start-menu-bg: rgba(32, 32, 32, 0.85);
        --window-bg: #2c2c2c;
        --text-color: #ffffff;
        --hover-bg: rgba(255, 255, 255, 0.05);
        --border-color: rgba(255, 255, 255, 0.1);
    }
} */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
}

input,
textarea,
[contenteditable] {
    user-select: text !important;
}

body {
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    background-image: url('wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

/* Desktop */
#desktop {
    height: calc(100vh - var(--taskbar-height));
    width: 100%;
    position: relative;
    padding: 10px;
}

.desktop-icons-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 100%;
    align-content: flex-start;
    gap: 10px;
}

.desktop-icon {
    width: 76px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: default;
    transition: background-color 0.1s;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.desktop-icon.selected {
    background-color: rgba(255, 255, 255, 0.2);
}

.desktop-icon img {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
    object-fit: cover;
}

.desktop-icon span {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    width: 48px;
    height: 48px;
    margin-bottom: 2px;
    object-fit: cover;
}

#taskbar-apps {
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-icon span {
    font-size: 12px;
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--taskbar-height);
    background-color: var(--taskbar-bg);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px !important;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.taskbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.taskbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.1s;
}

.taskbar-icon:hover {
    background-color: var(--hover-bg);
}

.taskbar-icon:active,
.taskbar-icon.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.taskbar-icon svg {
    width: 24px;
    height: 24px;
}

.taskbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    height: 100%;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    height: 80%;
    border-radius: 4px;
}

.system-tray:hover {
    background-color: var(--hover-bg);
}

.tray-icon {
    display: flex;
    align-items: center;
}

.tray-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 12px;
    line-height: 1.2;
    margin-left: 8px;
    text-align: right;
}

/* Start Menu */
.start-menu {
    position: fixed;
    bottom: calc(var(--taskbar-height) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 700px;
    max-height: 80vh;
    background-color: var(--start-menu-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.2s;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.start-menu.hidden {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

.start-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-bar {
    margin-bottom: 24px;
}

.search-bar input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--window-bg);
    color: var(--text-color);
    font-family: inherit;
}

.pinned-apps h3,
.recommended-section h3 {
    font-size: 14px;
    margin-bottom: 16px;
    padding-left: 12px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 0 12px;
}

.start-menu-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.user-profile:hover {
    background-color: var(--hover-bg);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.power-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-color);
}

.power-btn:hover {
    background-color: var(--hover-bg);
}

/* App Item Styles for Start Menu */
.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s;
    text-align: center;
}

.app-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.app-item:active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.app-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.app-item span {
    font-size: 12px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Window Styles */
.window {
    position: absolute;
    background-color: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 300px;
    min-height: 200px;
}

.window-header {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    background-color: transparent;
    cursor: default;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-left: 8px;
}

.window-title-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.window-controls {
    display: flex;
}

.control-btn {
    width: 46px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color);
}

.control-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.control-btn.close-btn:hover {
    background-color: #e81123;
    color: white;
}

.window-content {
    flex: 1;
    padding: 16px;
    overflow: auto;
    background-color: var(--window-bg);
}

/* Resize handles */
.resize-handle {
    position: absolute;
    z-index: 10;
}

.resize-handle.top {
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    cursor: ns-resize;
}

.resize-handle.right {
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    cursor: ew-resize;
}

.resize-handle.bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    cursor: ns-resize;
}

.resize-handle.left {
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    cursor: ew-resize;
}

/* Boot Screen Styles */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: url('https://images.unsplash.com/photo-1627664819818-e147d6221422?q=80&w=2888&auto=format&fit=crop') no-repeat center center/cover;
    font-family: 'Segoe UI', sans-serif;
    color: white;
    transition: opacity 0.5s ease-out;
}

#lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10vh;
    transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
    background: inherit;
    cursor: default;
}

#lock-screen.slide-up {
    transform: translateY(-100%);
}

.lock-content {
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#lock-time {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 8px;
}

#lock-date {
    font-size: 24px;
    font-weight: 400;
}

#login-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    gap: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s;
    color: var(--text-color);
}

.power-item:hover {
    background-color: var(--hover-bg);
}

.power-item svg {
    flex-shrink: 0;
}

.power-item span {
    font-size: 14px;
}

/* Startup Screen Styles */
#startup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 20000;
    /* Higher than boot/lock screen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 120px;
    transition: opacity 0.5s ease-out;
}

#startup-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.startup-logo {
    margin-bottom: 20px;
}

.startup-loader {
    display: flex;
    gap: 12px;
    position: relative;
    width: 100px;
    height: 100px;
    justify-content: center;
}

.circle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    animation: loader 4s infinite ease-in-out;
    opacity: 0;
}

.circle:nth-child(1) {
    animation-delay: 0s;
}

.circle:nth-child(2) {
    animation-delay: 0.15s;
}

.circle:nth-child(3) {
    animation-delay: 0.3s;
}

.circle:nth-child(4) {
    animation-delay: 0.45s;
}

.circle:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes loader {
    0% {
        transform: rotate(0deg) translateX(-30px) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        transform: rotate(180deg) translateX(-30px) rotate(-180deg);
        opacity: 1;
    }

    75% {
        transform: rotate(360deg) translateX(-30px) rotate(-360deg);
        opacity: 1;
    }
}

#lock-date {
    font-size: 24px;
    font-weight: 400;
}

#login-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

#login-screen.hidden {
    display: none;
}

#login-screen.fade-in {
    opacity: 1;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#login-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#login-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(0);
}

/* Power Menu Styles */
.power-container {
    position: relative;
}

.power-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgb(255 255 255 / 13%);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 4px;
    min-width: 280px;
    z-index: 10001;
}

.power-menu.hidden {
    display: none;
}

.power-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s;
    color: var(--text-color);
}

.power-item:hover {
    background-color: var(--hover-bg);
}

.power-item svg {
    flex-shrink: 0;
}

.power-item span {
    font-size: 14px;
}

/* Startup Screen Styles */
#startup-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 20000;
    /* Higher than boot/lock screen */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 120px;
    transition: opacity 0.5s ease-out;
}

#startup-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.startup-logo {
    margin-bottom: 20px;
}

.startup-loader {
    display: flex;
    gap: 12px;
    position: relative;
    width: 100px;
    height: 100px;
    justify-content: center;
}

.circle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    animation: loader 4s infinite ease-in-out;
    opacity: 0;
}

.circle:nth-child(1) {
    animation-delay: 0s;
}

.circle:nth-child(2) {
    animation-delay: 0.15s;
}

.circle:nth-child(3) {
    animation-delay: 0.3s;
}

.circle:nth-child(4) {
    animation-delay: 0.45s;
}

.circle:nth-child(5) {
    animation-delay: 0.6s;
}

@keyframes loader {
    0% {
        transform: rotate(0deg) translateX(-30px) rotate(0deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        transform: rotate(180deg) translateX(-30px) rotate(-180deg);
        opacity: 1;
    }

    75% {
        transform: rotate(360deg) translateX(-30px) rotate(-360deg);
        opacity: 1;
    }

    80% {
        opacity: 0;
    }

    100% {
        transform: rotate(360deg) translateX(-30px) rotate(-360deg);
        opacity: 0;
    }
}

/* Login Loading State */
.login-username {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-loading.hidden {
    display: none;
}

.welcome-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

.startup-loader.small {
    width: 60px;
    height: 60px;
}

.startup-loader.small .circle {
    width: 4px;
    height: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Screen Styles */
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.login-username {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

#login-btn {
    padding: 10px 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#login-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#login-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(0);
}

.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-loading.hidden {
    display: none;
}

.welcome-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

.startup-loader.small {
    width: 60px;
    height: 60px;
}

.startup-loader.small .circle {
    width: 4px;
    height: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Informative Text */
.login-info-left,
.login-info-right {
    position: absolute;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 380px;
    padding: 20px;
}

.login-info-left {
    left: 5%;
    bottom: 5%;
    text-align: right;
}

.login-info-right {
    right: 5%;
    bottom: 5%;
    text-align: left;
}

.login-info-left p,
.login-info-right p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 12px 0;
    opacity: 0.95;
}

/* View Size Options for Desktop Icons */
/* Large icons (default) - already defined above */

/* Medium icons */
.desktop-icons-container.view-medium-icons .desktop-icon {
    width: 64px;
    height: 76px;
}

.desktop-icons-container.view-medium-icons .desktop-icon img {
    width: 40px;
    height: 40px;
}

.desktop-icons-container.view-medium-icons .desktop-icon span {
    font-size: 11px;
}

/* Small icons */
.desktop-icons-container.view-small-icons .desktop-icon {
    width: 52px;
    height: 64px;
}

.login-username {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-loading.hidden {
    display: none;
}

.welcome-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

.startup-loader.small {
    width: 60px;
    height: 60px;
}

.startup-loader.small .circle {
    width: 4px;
    height: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Screen Styles */
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.login-username {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

#login-btn {
    padding: 10px 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#login-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#login-btn:active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(0);
}

.login-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-loading.hidden {
    display: none;
}

.welcome-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in;
}

.startup-loader.small {
    width: 60px;
    height: 60px;
}

.startup-loader.small .circle {
    width: 4px;
    height: 4px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Informative Text */
.login-info-left,
.login-info-right {
    position: absolute;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 380px;
    padding: 20px;
}

.login-info-left {
    left: 5%;
    bottom: 5%;
    text-align: right;
}

.login-info-right {
    right: 5%;
    bottom: 5%;
    text-align: left;
}

.login-info-left p,
.login-info-right p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin: 12px 0;
    opacity: 0.95;
}

/* View Size Options for Desktop Icons */
/* Large icons (default) - already defined above */

/* Medium icons */
.desktop-icons-container.view-medium-icons .desktop-icon {
    width: 64px;
    height: 76px;
}

.desktop-icons-container.view-medium-icons .desktop-icon img {
    width: 40px;
    height: 40px;
}

.desktop-icons-container.view-medium-icons .desktop-icon span {
    font-size: 11px;
}

/* Small icons */
.desktop-icons-container.view-small-icons .desktop-icon {
    width: 52px;
    height: 64px;
}

.desktop-icons-container.view-small-icons .desktop-icon img {
    width: 32px;
    height: 32px;
}

.desktop-icons-container.view-small-icons .desktop-icon span {
    font-size: 10px;
}

/* Start Menu - Pinned Apps and Recommended Section */
.pinned-apps h3,
.recommended-section h3 {
    font-size: 14px;
    margin-bottom: 16px;
    padding-left: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 0 12px;
}

/* Recommended Section Styles */
.recommended-section {
    margin-top: 24px;
}

.recommended-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 12px;
}

.recommended-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s;
}

.recommended-item:hover {
    background-color: var(--hover-bg);
}

.recommended-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.recommended-item-info {
    flex: 1;
    min-width: 0;
}

.recommended-item-title {
    font-size: 12px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.recommended-item-subtitle {
    font-size: 11px;
    color: var(--text-color);
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.start-menu-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 12px;
    padding-right: 12px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.user-profile:hover {
    background-color: var(--hover-bg);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.power-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-color);
}

.power-btn:hover {
    background-color: var(--hover-bg);
}