/* WINDOWS XP CLASSIC TASKBAR */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--taskbar-height);
    background: linear-gradient(180deg, #3a82e6 0%, #2c6fd7 52%, #245fc8 100%);
    z-index: 10000;
    display: flex;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: none;
    padding: 0 2px 0 0;
}

#start-button {
    width: 102px;
    height: 100%;
    background: linear-gradient(180deg, #69bf45 0%, #4ea433 52%, #3d8c26 100%);
    border: 1px solid #2f6f1f;
    border-left: none;
    border-top: none;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    padding: 0 8px 0 7px;
    cursor: pointer;
    margin: 0 5px 0 0;
    box-shadow: none;
    position: relative;
    flex: 0 0 auto;
}

#start-button::before {
    content: none;
}

#start-button::after {
    content: none;
}

#start-button:hover,
#start-button.active {
    background: linear-gradient(180deg, #74ca4f 0%, #58b03b 52%, #469b2e 100%);
}

#start-button:active {
    background: linear-gradient(180deg, #4f9b31 0%, #3d7f26 100%);
    box-shadow: none;
}

.start-icon {
    width: 21px;
    height: 21px;
    margin-right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.start-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.start-text {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
    font-style: italic;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.72);
    letter-spacing: 0;
    z-index: 1;
    line-height: 1;
}

#quick-launch {
    display: none;
}

.quick-launch-btn {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
}

.quick-launch-btn:hover {
    border-color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.25);
}

.quick-launch-btn img {
    width: 21px;
    height: 21px;
}

#taskbar-apps {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 6px 0 0;
    overflow: hidden;
}

.taskbar-app {
    height: 28px;
    min-width: 130px;
    max-width: 190px;
    flex: 0 1 160px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, #5aa6ef 0%, #407fce 60%, #3468af 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 7px;
    cursor: pointer;
    box-shadow: inset 0 -1px 0 rgba(8, 57, 134, 0.3);
}

.taskbar-app:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.07) 38%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, #66b2f7 0%, #4a8bdc 60%, #3b73bc 100%);
}

.taskbar-app.active {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.02) 38%, rgba(255, 255, 255, 0) 100%),
        linear-gradient(180deg, #2f69c0 0%, #2457a6 60%, #1c458a 100%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.34);
}

.taskbar-app.minimized {
    opacity: 0.76;
}

.taskbar-app .app-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.taskbar-app .app-title {
    color: #fff;
    font-size: 11px;
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 1px #000;
}

#system-tray {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0 8px 0 10px;
    gap: 6px;
    background: linear-gradient(180deg, #40b6f4 0%, #2a99e8 55%, #1d7fce 100%);
    border-left: 1px solid rgba(28, 102, 183, 0.9);
    box-shadow: inset 1px 0 0 rgba(168, 227, 255, 0.55);
    flex: 0 0 auto;
}

.tray-icon {
    width: 19px;
    height: 19px;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35));
}

.tray-icon[data-tray="sound"] {
    cursor: pointer;
}

.tray-icon[data-tray="sound"].muted {
    opacity: 0.5;
    filter: grayscale(0.8);
}

#clock {
    color: #fff;
    font-size: 13px;
    padding: 0 0 0 2px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.65);
    font-family: Tahoma, Arial, sans-serif;
    border: none;
    background: transparent !important;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
    line-height: 1;
    cursor: pointer;
    outline: none;
    height: 100%;
    min-width: 66px;
    text-align: center;
    font-weight: 400;
}

#clock:hover,
#clock:active {
    background: transparent !important;
    border: none !important;
}

#clock:focus {
    outline: 1px dotted rgba(255, 255, 255, 0.8);
    outline-offset: -2px;
}

.clock-popup {
    position: fixed;
    width: 244px;
    background: #f2f6ff;
    border: 1px solid #4d78c6;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.35);
    padding: 8px;
    z-index: 30000;
}

.clock-popup.hidden {
    display: none;
}

.clock-popup.visible {
    display: block;
}

.clock-popup-time {
    font-size: 19px;
    color: #184790;
    font-weight: bold;
}

.clock-popup-date {
    font-size: 11px;
    color: #2f578f;
    margin-bottom: 8px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #1c4a95;
    font-weight: bold;
}

.calendar-nav-btn {
    width: 22px;
    height: 20px;
    border: 1px solid #7b9ed4;
    background: #fff;
    cursor: pointer;
    font-size: 10px;
}

.calendar-nav-btn:hover {
    background: #dce9ff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-weekday {
    text-align: center;
    font-size: 10px;
    color: #2d4f80;
    padding: 2px 0;
    font-weight: bold;
}

.calendar-day {
    text-align: center;
    font-size: 11px;
    color: #243f65;
    padding: 4px 0;
    border: 1px solid transparent;
}

.calendar-day.muted {
    color: transparent;
}

.calendar-day.today {
    border-color: #5f8fdf;
    background: #e3eeff;
    font-weight: bold;
}

@media (max-width: 760px) {
    #start-button {
        width: 86px;
        height: 100%;
        padding: 0 6px 0 5px;
        border-radius: 0 10px 10px 0;
        margin-right: 4px;
    }

    .start-icon {
        width: 15px;
        height: 15px;
        margin-right: 4px;
    }

    .start-icon img {
        width: 14px;
        height: 14px;
    }

    .start-text {
        font-size: 14px;
    }

    .taskbar-app {
        min-width: 96px;
        max-width: 136px;
        height: 24px;
        flex-basis: 108px;
    }

    .taskbar-app .app-icon {
        width: 13px;
        height: 13px;
    }

    .taskbar-app .app-title {
        font-size: 9px;
    }

    #system-tray {
        padding: 0 5px 0 6px;
        gap: 3px;
    }

    .tray-icon {
        width: 14px;
        height: 14px;
    }

    #clock {
        min-width: 52px;
        padding: 0 2px;
        font-size: 10px;
    }
}
