:root {
    --win11-accent: #0078d7;
    --win11-bg: #202020;
    --win11-surface: #2d2d2d;
    --win11-text: #ffffff;
    --win11-card: rgba(255, 255, 255, 0.05);
    --win11-hover: rgba(255, 255, 255, 0.1);
    --win11-context-menu: rgba(42, 42, 42, 0.95);
}

body {
    height: 100vh;
    overflow: hidden;
    font-family: "Segoe UI", system-ui, sans-serif;
    margin: 0;
    padding: 20px;
    position: relative;
    user-select: none;
}

/* Desktop Shortcuts */
.desktop {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    gap: 20px;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 48px;
    align-content: start;
    position: relative;
    z-index: 2;
}

.desktop-wallpaper {
    background: #975209bd;
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}

.desktop-brand {
    width: 80vw;
    margin: 0 auto;
    border: 0px solid #000;
    position: relative;
    top: 15%;
}

.desktop-logo {
    width: 25%;
    margin: 0 auto;
    position: relative;
    margin-top: 5rem;
}

.desktop-logo img {
    width: 100%;
}

.desktop-title {
    font-family: "Chewy", system-ui;
    font-weight: 400;
    font-style: normal;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: -1.5rem;
    color: antiquewhite;
}

.desktop-title .subtitle {
    font-weight: normal;
    font-family: 'Caveat';
    font-size: 2rem;
}

.desktop-menu {
    position: absolute;
    border-top: 1px solid #fff;
    bottom: -5rem;
    width: 100%;
}

.desktop-menu .nav {
    width: fit-content;
    margin: 0 auto;
}

.desktop-menu .nav a {
    color: #fff;
}

.desktop-shortcut-list {
    width: 80%;
    margin: 0 auto;
    display: flex;
    border: 1px solid #000;
}

.desktop-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.2s;
    width: 80px;
    position: relative;
}

.desktop-shortcut:hover {
    background: var(--win11-hover);
}

.desktop-shortcut.selected {
    background: rgba(0, 120, 215, 0.3);
}

.desktop-shortcut i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.desktop-shortcut span {
    font-size: 12px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    word-break: break-word;
}

/* Context Menu */
.context-menu {
    position: absolute;
    background: var(--win11-context-menu);
    backdrop-filter: blur(30px);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 0;
    min-width: 200px;
    z-index: 2000;
    display: none;
}

.context-menu-item {
    padding: 8px 15px;
    color: var(--win11-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-menu-item:hover {
    background: var(--win11-accent);
}

.context-menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.context-menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 4.5rem;
    background: rgba(32, 32, 32, 0.8);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    left: 0;
}

.taskbar-pointer {
    position: absolute;
    color: #fff;
    top: -4rem;
    left: -6rem;
    width: 10rem;
    font-size: 1.5rem;
    font-family: "Caveat", cursive;
    transform: rotate(38deg);
}

.taskbar-icons {
    display: flex;
    gap: 4px;
    padding: 0 10px;
}

.taskbar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--win11-text);
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    font-size: 1.8rem;
}

.taskbar-icon:hover {
    background: var(--win11-hover);
}

.taskbar-icon.active::before {
    content: "";
    position: absolute;
    top: -6px;
    width: 16px;
    height: 3px;
    background: var(--win11-text);
    border-radius: 3px;
}

.taskbar-clock {
    position: absolute;
    right: 1rem;
    border-radius: 4px;
    padding: 2px 12px;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}


/* Start Menu */
.barMenu {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 650px;
    background: rgb(238 147 60 / 33%);
    backdrop-filter: blur(30px);
    border-radius: 8px;
    padding: 20px;
    display: none;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-content {
    height: 35rem;
    overflow: auto;
}

.app-category {
    margin-bottom: 1rem;
    width: 100%;

}

.app-tags {
    border-bottom: 1px solid #ffffff7d;
    padding-bottom: 0.5rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 20px;
}


.app-icon {
    text-align: center;
    color: var(--win11-text);
    text-decoration: none;
    transition: all 0.2s;
    padding: 10px;
    border-radius: 5px;
    margin: 0 auto;
}

.app-icon.hasImage {
    width: 5rem;
}

.app-icon.hasImage img {
    width: 100%;
}

.app-icon:hover {
    background: var(--win11-hover);
}

.app-icon i {
    font-size: 2rem;
    margin-bottom: 5px;
}

.app-icon span {
    font-size: 12px;
}


@media (max-width: 575.98px) {
    .desktop-brand {
        top: 18vh;
    }

    .desktop-logo {
        width: 50%;
        margin: 0 auto;
        position: relative;
        top: 18%;
    }

    .desktop-title {
        bottom: -2rem;
    }

    .desktop-title h1 {
        font-size: 1.8rem;
    }

    .desktop-title .subtitle {
        font-size: 1.5rem;
        font-weight: normal;
    }

    .desktop-menu {
        bottom: -8rem;
    }

    .desktop-menu .nav {
        width: fit-content;
        margin: 0 auto;
    }

    .taskbar-pointer {
        position: absolute;
        color: #fff;
        top: -3rem;
        left: -4rem;
        width: 10rem;
        font-size: 1.2rem;
        font-family: "Caveat", cursive;
        transform: rotate(67deg);
    }

    .app-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
        margin-top: 20px;
    }

    .app-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--win11-text);
        text-decoration: none;
        transition: all 0.2s;
        padding: 10px;
        border-radius: 5px;
    }

    .barMenu {
        position: fixed;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        height: 85vh;
        background: rgb(238 147 60 / 33%);
        backdrop-filter: blur(30px);
        border-radius: 8px;
        padding: 20px;
        display: none;
        z-index: 1001;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .app-content {
        height: 30rem;
        overflow: auto;
    }
}

@media (min-width: 576px) {}

@media (min-width: 768px) {}

@media (min-width: 992px) {}

@media (min-width: 1200px) and (max-width:1399px) {
    .desktop-logo {
        width: 20%;
        margin: 0 auto;
        position: relative;
        margin-top: 5rem;
    }

    .desktop-title {
        bottom: -0.5rem;
    }

    .desktop-title h1 {
        font-size: 1.8rem;
    }

    .desktop-title .subtitle {
        font-size: 1rem;
    }
}

@media (min-width: 1400px) {
    .app-grid {
        gap: 0.2rem;

    }

    .desktop-brand {
        top: 2vh;
    }

    .desktop-logo {
        width: 22%;
        margin-top: 8rem;
    }

    .desktop-title {
        bottom: -4rem;
    }

    .desktop-title h1 {
        font-size: 3.5rem;
    }

    .desktop-title .subtitle {
        font-size: 2.5rem;
        margin-top: -1rem;
    }
}