/* Neo-Brutalist Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: #f4f4f0;
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 20px 20px;
    overflow: hidden;
}

#desktop {
    width: 100vw;
    height: 93vh;
    position: relative;
}

/* Smart Hub */
#central-hub {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffc900;
    padding: 20px;
    border: 4px solid black;
    box-shadow: 8px 8px 0px black;
    text-align: center;
    z-index: 5;
}

.hub-title {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

#desktop-search {
    padding: 10px;
    width: 250px;
    border: 3px solid black;
    font-size: 16px;
    font-weight: bold;
    outline: none;
}

.shortcuts-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.desktop-icon {
    background: white;
    border: 3px solid black;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 4px 4px 0px black;
    transition: transform 0.1s;
}

.desktop-icon:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px black;
}

.icon-text {
    display: block;
    font-weight: 900;
    font-size: 16px;
}

/* The Windows */
.window {
    position: absolute;
    width: 350px;
    background-color: white;
    border: 4px solid black;
    box-shadow: 8px 8px 0px black;
    display: none;
    flex-direction: column;
}

.window.open {
    display: flex;
}

.window-header {
    background-color: #00e5ff;
    padding: 10px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    border-bottom: 4px solid black;
    font-weight: 900;
    font-size: 18px;
}

.win-btn {
    background: #ff4949;
    color: white;
    border: 3px solid black;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 8px;
}

.win-btn:active {
    background: black;
}

.window-body {
    padding: 15px;
}

/* Calculator specific */
#calc-display {
    width: 100%;
    padding: 10px;
    font-size: 24px;
    border: 3px solid black;
    text-align: right;
    margin-bottom: 10px;
    font-weight: bold;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.c-btn {
    padding: 15px;
    background: #e0e0e0;
    border: 3px solid black;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 0px black;
}

.c-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px 0px black;
}

.c-btn.action { background: #ffc900; }
.c-btn.clear { background: #ff4949; color: white; }

/* Taskbar & Start Menu */
#taskbar {
    width: 100vw;
    height: 7vh;
    background-color: white;
    border-top: 4px solid black;
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
}

#start-trigger {
    background-color: #9400FF;
    color: white;
    border: 3px solid black;
    padding: 10px 20px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 4px 4px 0px black;
}

#start-menu {
    position: absolute;
    bottom: 8vh;
    left: 10px;
    width: 250px;
    background-color: white;
    border: 4px solid black;
    box-shadow: 8px 8px 0px black;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

#start-menu.visible {
    display: flex;
}

.menu-link {
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 3px solid black;
}

.menu-link:hover {
    background-color: #00e5ff;
}

.jiggle-btn {
    background-color: #39ff14;
}

/* Jiggle Animation */
.shake-animation {
    animation: shake 0.3s infinite;
}

@keyframes shake {
    0% { transform: translate(2px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-2deg); }
    20% { transform: translate(-3px, 0px) rotate(2deg); }
    30% { transform: translate(0px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(2deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(2px, 1px) rotate(-2deg); }
    80% { transform: translate(-1px, -1px) rotate(2deg); }
    90% { transform: translate(2px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
