/* Taskbar - Ubuntu-style dock on the left */
#taskbar {
    width: var(--taskbar-width);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-right: 1px solid var(--border-color);
}

.taskbar-top {
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.taskbar-top .logo {
    display: flex;
    justify-content: center;
}

.taskbar-top .logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.taskbar-apps {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.taskbar-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* App Button */
.app-btn {
    width: 52px;
    height: 52px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.2s;
    position: relative;
}

.app-btn .app-icon {
    font-size: 1.5rem;
}

.app-btn .app-tooltip {
    font-size: 0;
    opacity: 0;
    position: absolute;
    left: calc(100% + 15px);
    background: var(--bg-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    box-shadow: var(--shadow);
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.2s, font-size 0s;
    border: 1px solid var(--border-color);
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.app-btn:hover .app-tooltip {
    opacity: 1;
    font-size: 0.8rem;
}

.app-btn.active {
    background: rgba(225, 228, 131, 0.2);
    color: #e1e483;
}

.app-btn.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #e1e483;
    border-radius: 0 4px 4px 0;
}

/* Legacy taskbar-btn for compatibility */
.taskbar-btn {
    width: 52px;
    height: 52px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    position: relative;
}

.taskbar-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.taskbar-btn span {
    font-size: 9px;
    font-weight: 500;
    opacity: 0.8;
}

.taskbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.taskbar-btn.active {
    background: rgba(225, 228, 131, 0.2);
    color: #e1e483;
}

.taskbar-btn.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #e1e483;
    border-radius: 0 4px 4px 0;
}
