/* Windows 11 Taskbar 1:1 Pixel-Perfect Recreation */
.windows-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: rgba(30, 30, 30, 0.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 10000;
    user-select: none;
    font-family: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #ffffff;
}

/* Left Section: Weather / Widgets */
.taskbar-left {
    display: flex;
    align-items: center;
    min-width: 140px;
}

.taskbar-weather-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 8px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1);
    height: 38px;
    min-width: 140px;
    width: auto;
    max-width: 240px;
    box-sizing: border-box;
    will-change: transform;
}

.taskbar-weather-widget:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.03);
}

.taskbar-weather-widget:active {
    transform: translateY(0px) scale(0.95);
    background: rgba(255, 255, 255, 0.08);
}

.taskbar-weather-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.taskbar-weather-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.taskbar-weather-widget:hover .taskbar-weather-icon-img {
    transform: scale(1.12);
}

.taskbar-weather-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    min-width: 0;
}

.taskbar-weather-temp {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.2px;
}

#taskbar-weather-desc {
    font-size: 11.5px;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* Center Section: App Icons */
.taskbar-center {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.taskbar-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
                box-shadow 0.25s ease;
    will-change: transform;
}

.taskbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px) scale(1.08);
}

.taskbar-icon-btn:active {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(0px) scale(0.92);
    transition: transform 0.1s ease;
}

.taskbar-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none;
    display: block;
    transition: transform 0.25s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.taskbar-icon-btn:hover .taskbar-icon-img {
    transform: scale(1.06);
}

.taskbar-val-badge {
    width: 24px;
    height: 24px;
    background: #ff4655;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(255, 70, 85, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.45, 0.64, 1), box-shadow 0.25s ease;
}

.taskbar-icon-btn:hover .taskbar-val-badge {
    box-shadow: 0 4px 14px rgba(255, 70, 85, 0.65);
}

.taskbar-val-badge .taskbar-icon-img {
    width: 15px;
    height: 15px;
}

/* Active running app indicator pill */
.taskbar-icon-btn.running::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 6px;
    height: 3px;
    background: #8e9099;
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.34, 1.45, 0.64, 1), background 0.2s ease, box-shadow 0.25s ease;
}

.taskbar-icon-btn.running:hover::after {
    width: 14px;
    background: #a6a8b2;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.taskbar-icon-btn.active::after,
.taskbar-icon-btn.running.active::after {
    width: 16px;
    background: #60cdff;
    box-shadow: 0 0 8px rgba(96, 205, 255, 0.8);
}

/* Right Section: System Tray & Clock */
.taskbar-right {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 160px;
    justify-content: flex-end;
}

.system-tray-icons {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border-radius: 0;
    cursor: default;
    background: transparent !important;
}

.system-tray-icons:hover {
    background: transparent !important;
}

.tray-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 28px;
    padding: 0 4px;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.34, 1.45, 0.64, 1);
    box-sizing: border-box;
    will-change: transform;
}

.tray-icon:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    transform: translateY(-2px) scale(1.06);
}

.tray-icon:active,
.tray-icon.active {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(0px) scale(0.94);
}

.lang-tray-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    min-width: 44px;
}

.taskbar-lang-text {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    line-height: 1;
}

.tray-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
    opacity: 0.9;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.tray-icon:hover .tray-icon-img {
    transform: scale(1.1);
}

.taskbar-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.34, 1.45, 0.64, 1);
    will-change: transform;
}

.taskbar-clock:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.03);
}

.taskbar-clock:active {
    transform: translateY(0px) scale(0.95);
}

.taskbar-clock-time {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.15;
}

.taskbar-clock-date {
    font-size: 11px;
    color: #cccccc;
    line-height: 1.15;
}

/* Show Desktop right strip */
.taskbar-show-desktop {
    width: 6px;
    height: 100%;
    margin-left: 2px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.15s ease;
}

.taskbar-show-desktop:hover {
    background: rgba(255, 255, 255, 0.15);
}
