/* ===========================================================
   DESKTOP & TASKBAR
   Desktop icon grid, Start menu taskbar, and system tray
   =========================================================== */


/* ---- Desktop icons ---- */
.desktop-icons {
    position: absolute;
    left: 18px;
    top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(72px, 84px));
    grid-template-rows: repeat(6, auto);
    gap: 12px 10px;
    z-index: 2;
    max-width: min(180px, calc(100vw - 36px));
    align-content: start;
}

.desktop-icon-btn {
    width: 100%;
    min-width: 72px;
    border: 1px solid transparent;
    background: transparent;
    color: #ffffff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
    padding: 4px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: url("../images/pointer.cur"), pointer;
}

.desktop-icon-btn img {
    width: clamp(28px, 4vw, 36px);
    height: clamp(28px, 4vw, 36px);
    object-fit: contain;
}

.desktop-icon-btn span {
    font-size: clamp(10px, 1.4vw, 11px);
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
}

.desktop-icon-btn.active {
    background: #0a5bd6;
    border: 1px solid #0b3d91;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    color: #ffffff;
}


/* ---- Taskbar shell ---- */
.taskbar-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    width: 100%;
    height: 42px;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    padding: 4px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 5px;
}


/* ---- Start button ---- */
.start-button {
    height: 32px;
    padding: 0 14px;
    background: #c0c0c0;
    border: 2px outset #333333;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.start-button-icon {
    width: 40px;
    height: 50px;
    object-fit: contain;
}

.start-button:active {
    border: 2px inset #dfdfdf;
}

.start-button img {
    width: 24px;
    height: 20px;
}


/* ---- Dividers ---- */
.taskbar-divider {
    width: 4px;
    height: 28px;
    background: #808080;
    border-right: 1px solid #ffffff;
}

.taskbar-divider2 {
    width: 6px;
    height: 20px;
    background: #b8b2b2;
    border-right: 1px solid #c7c1c1;
    border-left: 1px solid #8d8a8a;
    /* border: solid 1px white; */
}


/* ---- Running task button ---- */
.task-button {
    height: 32px;
    min-width: 240px;
    padding: 0 12px;

    background: #c0c0c0;
    border: 2px inset #363535;

    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    font-weight: bold;
}

.task-icons {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.task-icons-big {
    width: 45px;
    height: 45px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.task-button img {
    width: 18px;
    height: 18px;
}


/* ---- System tray & clock ---- */
.system-tray {

    height: 30px;
    padding: 0 1px;

    background: #afaeae;
    border: 2px inset #dfdfdf;

    display: flex;
    align-items: center;

    font-size: 14px;
}

.system-tray-main {
    margin-left: auto;

}
