/* Windows XP Taskbar */

#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg, 
        #3168D5 0%, 
        #4E8CD8 3%, 
        #2456C2 6%, 
        #1941A3 50%, 
        #1941A3 94%, 
        #112E7A 97%, 
        #0D2366 100%
    );
    display: flex;
    align-items: center;
    padding: 0 2px;
    z-index: 9999;
    border-top: 1px solid #0D47A1;
}

/* Start Button */
#start-button {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 10px 0 4px;
    background: linear-gradient(180deg, 
        #5CB85C 0%, 
        #3D9140 10%, 
        #277529 40%, 
        #277529 90%, 
        #1B5E20 100%
    );
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    color: white;
    font-family: var(--xp-font-ui);
    font-size: 11px;
    font-weight: bold;
    font-style: italic;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        1px 0 1px rgba(0, 0, 0, 0.2);
    margin-left: -2px;
}

#start-button:hover {
    background: linear-gradient(180deg, 
        #6DCB6D 0%, 
        #4DA650 10%, 
        #378539 40%, 
        #378539 90%, 
        #2B7030 100%
    );
}

#start-button:active {
    background: linear-gradient(180deg, 
        #4CA64C 0%, 
        #2D7130 10%, 
        #175519 40%, 
        #175519 90%, 
        #0B4E10 100%
    );
}

#start-button .start-logo {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7C52D 50%, #7CB342 75%, #42A5F5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-style: normal;
    text-shadow: none;
}

/* Quick Launch */
#quick-launch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 4px;
    margin-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.quick-launch-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 2px;
    font-size: 14px;
}

.quick-launch-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Running Apps Area */
#running-apps {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 4px;
    overflow: hidden;
}

.taskbar-app {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 22px;
    padding: 0 8px;
    background: linear-gradient(180deg,
        #3C81DF 0%,
        #2E6BC9 15%,
        #2157B3 50%,
        #1E4F9E 85%,
        #1A4088 100%
    );
    border: 1px solid;
    border-color: rgba(255, 255, 255, 0.3) rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.3) rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    color: white;
    font-size: 11px;
    font-family: var(--xp-font-ui);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    min-width: 120px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-app:hover {
    background: linear-gradient(180deg,
        #4C91EF 0%,
        #3E7BD9 15%,
        #3167C3 50%,
        #2E5FAE 85%,
        #2A5098 100%
    );
}

.taskbar-app.active {
    background: linear-gradient(180deg,
        #1C3C78 0%,
        #1E4888 15%,
        #205098 50%,
        #1E4888 85%,
        #1C3C78 100%
    );
    border-color: rgba(0, 0, 0, 0.3) rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.3);
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.taskbar-app .app-icon {
    width: 16px;
    height: 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* System Tray */
#system-tray {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
    height: 100%;
    background: linear-gradient(180deg,
        #1C5DBF 0%,
        #1856B0 50%,
        #144FA1 100%
    );
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.tray-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

#clock {
    color: white;
    font-size: 11px;
    font-family: var(--xp-font-ui);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    padding-left: 8px;
}

/* Start Menu */
#start-menu {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 380px;
    background: var(--xp-button-face);
    border: 2px solid;
    border-color: #4B8BD4 #1941A3 #1941A3 #4B8BD4;
    border-radius: 6px 6px 0 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 10001;
    overflow: hidden;
}

#start-menu.visible {
    display: block;
}

.start-menu-header {
    background: linear-gradient(180deg, #2158B4 0%, #1941A3 50%, #0D2E7A 100%);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-menu-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7EB4EA 0%, #1E5799 100%);
    border: 2px solid #89C4F8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.start-menu-username {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.start-menu-body {
    display: flex;
    height: 320px;
}

.start-menu-left {
    flex: 1;
    background: white;
    padding: 8px 0;
    border-right: 1px solid #D6D2C2;
}

.start-menu-right {
    width: 170px;
    background: linear-gradient(180deg, #4B8BD4 0%, #3A7AC8 100%);
    padding: 8px 0;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    color: #000;
    font-size: 11px;
}

.start-menu-item:hover {
    background: var(--xp-selection-bg);
    color: white;
}

.start-menu-item .item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #7EB4EA 0%, #1E5799 100%);
    border-radius: 4px;
}

.start-menu-right .start-menu-item {
    color: white;
    padding: 6px 10px;
}

.start-menu-right .start-menu-item .item-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
    background: none;
}

.start-menu-right .start-menu-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.start-menu-separator {
    height: 1px;
    background: #D6D2C2;
    margin: 4px 12px;
}

.start-menu-right .start-menu-separator {
    background: rgba(255, 255, 255, 0.3);
}

.start-menu-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px;
    background: linear-gradient(180deg, #2A67B9 0%, #1941A3 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.start-menu-footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: transparent;
    border: none;
    color: white;
    font-size: 11px;
    cursor: pointer;
    border-radius: 3px;
}

.start-menu-footer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
