/* Windows XP Taskbar Styling */

/* Main Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, var(--xp-blue-light), var(--xp-blue));
    border-top: 1px solid var(--xp-blue-dark);
    display: flex;
    align-items: center;
    z-index: 1001;
    font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* Start Button */
.start-button {
    height: 30px;
    min-width: 90px;
    background: linear-gradient(to bottom, #5CB85C, #449D44);
    border: 2px solid;
    border-color: #7BC97B var(--xp-border-darker) var(--xp-border-darker) #7BC97B;
    border-radius: 6px 6px 6px 0;
    margin: 2px 4px 2px 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.start-button:hover {
    background: linear-gradient(to bottom, #6BBF6B, #52B252);
}

.start-button:active,
.start-button.active {
    background: linear-gradient(to bottom, #449D44, #337A33);
    border-color: var(--xp-border-darker) #7BC97B #7BC97B var(--xp-border-darker);
}

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

.start-text {
    font-size: 11px;
    font-weight: bold;
    text-transform: lowercase;
    font-style: italic;
}

/* Task Items Container */
.task-items {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 4px;
    height: 100%;
    overflow: hidden;
}

/* Task Item */
.task-item {
    height: 28px;
    min-width: 100px;
    max-width: 200px;
    background: linear-gradient(to bottom, var(--xp-gray-light), var(--xp-gray));
    border: 1px solid;
    border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    color: var(--xp-text);
    user-select: none;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-item:hover {
    background: linear-gradient(to bottom, #F8F6F0, var(--xp-gray-light));
}

.task-item.active {
    background: linear-gradient(to bottom, var(--xp-gray-dark), var(--xp-gray));
    border-color: var(--xp-border-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-border-dark);
}

.task-item.flashing {
    animation: task-flash 1s ease-in-out infinite;
}

@keyframes task-flash {
    0%, 100% {
        background: linear-gradient(to bottom, var(--xp-gray-light), var(--xp-gray));
    }
    50% {
        background: linear-gradient(to bottom, var(--xp-orange), #E68500);
        color: white;
    }
}

.task-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    flex-shrink: 0;
}

.task-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* System Tray */
.system-tray {
    background: linear-gradient(to bottom, var(--xp-blue-light), var(--xp-blue));
    border-left: 1px solid var(--xp-blue-dark);
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 4px;
    height: 100%;
}

/* Tray Icons */
.tray-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background-color 0.1s ease;
    position: relative;
}

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

.tray-icon img {
    width: 16px;
    height: 16px;
    display: block;
}

.tray-icon .icon-fallback {
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    display: none;
}

/* Clock */
.clock {
    background: linear-gradient(to bottom, var(--xp-blue-light), var(--xp-blue));
    color: white;
    padding: 2px 8px;
    border-left: 1px solid var(--xp-blue-dark);
    text-align: center;
    cursor: pointer;
    user-select: none;
    min-width: 80px;
}

.clock:hover {
    background: linear-gradient(to bottom, #6BA3F0, #2B7CE9);
}

.time {
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1px;
}

.date {
    font-size: 9px;
    line-height: 1;
    opacity: 0.9;
}

/* Notification Area */
.notification {
    position: fixed;
    bottom: 45px;
    right: 10px;
    background: #FFFBF0;
    border: 1px solid var(--xp-border-dark);
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    max-width: 250px;
    z-index: 10002;
    font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    animation: notification-slide 0.3s ease-out;
}

@keyframes notification-slide {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.notification-icon {
    width: 16px;
    height: 16px;
    font-size: 14px;
}

.notification-title {
    font-weight: bold;
    color: var(--xp-text);
}

.notification-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 12px;
    color: var(--xp-gray-dark);
}

.notification-close:hover {
    color: var(--xp-text);
}

.notification-message {
    color: var(--xp-text);
    line-height: 1.3;
}

/* Show Desktop Button */
.show-desktop {
    width: 12px;
    height: 100%;
    background: linear-gradient(to bottom, var(--xp-blue-light), var(--xp-blue));
    border-left: 1px solid var(--xp-blue-dark);
    cursor: pointer;
    position: relative;
}

.show-desktop:hover {
    background: linear-gradient(to bottom, #6BA3F0, #2B7CE9);
}

.show-desktop:active {
    background: linear-gradient(to bottom, #2B7CE9, #1A5CB8);
}

/* Volume Control */
.volume-control {
    position: absolute;
    bottom: 45px;
    right: 120px;
    background: var(--xp-gray);
    border: 1px solid var(--xp-border-dark);
    border-radius: 4px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    padding: 12px;
    z-index: 10002;
    font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    width: 40px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 20px;
    height: 80px;
    background: white;
    border: 1px solid;
    border-color: var(--xp-border-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-border-dark);
    position: relative;
    cursor: pointer;
}

.volume-thumb {
    width: 18px;
    height: 8px;
    background: var(--xp-gray);
    border: 1px solid;
    border-color: var(--xp-border-light) var(--xp-border-dark) var(--xp-border-dark) var(--xp-border-light);
    position: absolute;
    left: 0;
    cursor: grab;
}

.volume-thumb:active {
    cursor: grabbing;
}

/* Quick Launch */
.quick-launch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 4px;
    border-right: 1px solid var(--xp-blue-dark);
    height: 100%;
}

.quick-launch-item {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background-color 0.1s ease;
}

.quick-launch-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-launch-item:active {
    background: rgba(0, 0, 0, 0.1);
}

.quick-launch-item img {
    width: 16px;
    height: 16px;
    display: block;
}

/* Responsive Taskbar */
@media (max-width: 768px) {
    .taskbar {
        height: 44px;
        font-size: 12px;
    }
    
    .start-button {
        height: 34px;
        min-width: 80px;
    }
    
    .task-item {
        height: 32px;
        min-width: 80px;
        max-width: 150px;
        font-size: 10px;
    }
    
    .clock {
        min-width: 70px;
        font-size: 10px;
    }
    
    .time {
        font-size: 10px;
    }
    
    .date {
        font-size: 8px;
    }
    
    .quick-launch {
        display: none;
    }
}

@media (max-width: 480px) {
    .taskbar {
        height: 48px;
        font-size: 13px;
    }
    
    .start-button {
        height: 38px;
        min-width: 70px;
    }
    
    .start-text {
        font-size: 10px;
    }
    
    .task-item {
        height: 36px;
        min-width: 60px;
        max-width: 120px;
        font-size: 9px;
    }
    
    .system-tray {
        gap: 2px;
        padding: 0 2px;
    }
    
    .tray-icon {
        width: 18px;
        height: 18px;
    }
    
    .clock {
        min-width: 60px;
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .time {
        font-size: 9px;
    }
    
    .date {
        font-size: 7px;
    }
    
    .notification {
        max-width: 200px;
        font-size: 10px;
        right: 5px;
        bottom: 53px;
    }
    
    .volume-control {
        right: 80px;
        bottom: 53px;
        width: 36px;
        height: 100px;
    }
} 